A method, system and apparatus for non-destructive determination of shrimp phenotypic traits

By combining adaptive instance segmentation networks and graph neural networks, the problems of occlusion and varied postures in shrimp phenotypic trait measurement are solved, achieving high-precision non-destructive measurement and data acquisition, and improving measurement robustness in complex scenarios.

CN123126775APending Publication Date: 2026-11-20SOUTH CHINA SEA FISHERIES RES INST CHINESE ACAD OF FISHERY SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611644714.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

Technical Problem

Existing technologies for measuring shrimp phenotypic traits suffer from inconsistent measurement results, high error rates, and low detection accuracy in high-density aquaculture scenarios with individual occlusion and variable postures.

Method used

An adaptive instance segmentation network is used to enhance the feature response of key parts of shrimp bodies. A graph neural network is used to infer occlusion key points. The Hungarian algorithm is used to perform joint matching of appearance similarity and motion prediction error. Active light field modulation and polarization difference technology are used for data acquisition and multimodal fusion.

Benefits of technology

Maintaining detection accuracy in high-density aquaculture scenarios, improving measurement robustness under occlusion and extreme postures, and achieving simultaneous acquisition of water scattering suppression and internal tissue perception, providing a high-quality data foundation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123126775A_ABST
    Figure CN123126775A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of prawn phenotype character nondestructive determination method, system and equipment, belong to prawn nondestructive testing technical field, by analyzing the peak confidence and spatial continuity of key point thermogram, the shielding state of each key point is judged, for the key point of being shielded, using the topological constraint of prawn posture skeleton and the coordinate information of detected key point, through graph neural network, coordinate inference and correction are carried out, appearance embedding vector and motion state vector are extracted for each prawn, appearance similarity and motion prediction error are matched using hungarian algorithm;The present application can still maintain a certain precision under the condition that prawn individuals are seriously mutual shielded in high-density breeding scene, and shrimp body continuously swims in water, posture is changeable, and moreover, the scheme is through deformable convolution adaptive contour deformation, graph neural network infers shielded key point, appearance-motion joint tracking, significantly improve the measurement robustness in complex scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of non-destructive testing technology for shrimp, and in particular to a method, system, and equipment for non-destructive determination of shrimp phenotypic traits. Background Technology

[0002] Shrimp are an important economic species in global aquaculture. During breeding and farming, phenotypic parameters such as body length, carapace length, abdominal segment length, body width, and weight are important reference data for genetic evaluation and production management, and usually require frequent measurement. However, the currently mainly used manual contact measurement methods are time-consuming and labor-intensive, and are easily affected by the subjective factors of the operator and environmental interference, resulting in inconsistent measurement results and a high error rate.

[0003] In recent years, researchers have attempted to use computer vision technology to replace manual measurement. For example, existing technologies disclose a method for measuring the phenotypic data of Litopenaeus vannamei (whiteleg shrimp). This method collects side and top view image samples, uses the Hourglassnet deep learning network model to detect key points of the shrimp, and calculates phenotypic data by combining three-dimensional spatial transformation. Other research has proposed a method for measuring the size of planktonic shrimp that combines object detection, key point detection, and binocular vision. This method uses Faster R-CNN to solve the localization problem and the RTMPose network for key point detection.

[0004] However, shrimp have a semi-transparent body surface and strong light reflectivity. Changes in water turbidity result in a low signal-to-noise ratio for traditional single-wavelength imaging, making it difficult to simultaneously acquire information on the shrimp's external morphology and internal tissue structure. Furthermore, in high-density aquaculture environments, individual shrimp often obstruct each other, and their continuous swimming and varied postures cause traditional keypoint detection methods to experience a sharp decline in accuracy under these conditions. Simultaneously measuring multiple shrimp requires addressing the issue of continuous individual tracking. Summary of the Invention

[0005] This invention overcomes the shortcomings of the prior art and provides a non-destructive method, system and equipment for determining the phenotypic traits of shrimp.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: The first aspect of this invention provides a non-destructive method for determining the phenotypic traits of shrimp, comprising the following steps: Top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp were acquired. An adaptive instance segmentation network was used to enhance the feature response of key parts of the shrimp body, and the shrimp body mask, bounding box, and key point heat map were output. By analyzing the peak confidence and spatial continuity of the key point heatmap, the occlusion status of each key point is determined. For occluded key points, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points are used to perform coordinate inference and correction through a graph neural network. For each shrimp, an appearance embedding vector and a motion state vector are extracted. The Hungarian algorithm is used to perform joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Using measurement results of the same shrimp in multiple consecutive frames, a smoothed phenotypic measurement result is output through sliding window weighted averaging and outlier removal.

[0007] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp are acquired, specifically: A programmable LED array is arranged on the inner wall of the acquisition dark box, which includes polarized LEDs in the visible light band and the near-infrared band. Each LED in each band is equipped with a rotatable polarizer, and the polarization angle is controlled by a stepper motor. The light source array is time-coded and modulated by an FPGA controller, and different combinations of bands and polarization directions are lit up sequentially in a single acquisition cycle. Two high-sensitivity polarization cameras were placed on the top and side wall of the acquisition dark box, respectively. Each camera was equipped with an analyzer synchronized with the polarization direction of the light source. By calculating the image difference of different polarization directions under the same band, the contrast of shrimp surface texture and contour was enhanced. Near-infrared transmission light source is set at the bottom of the acquisition channel. By taking advantage of the difference in the absorption coefficient of near-infrared light between the shrimp carapace and internal tissue, transmission images are obtained. All light sources and cameras are hardware-level synchronized and triggered by the same FPGA main control board. After the data collection was completed, top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of the shrimp were acquired.

[0008] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, an adaptive instance segmentation network is used to enhance the feature response of key parts of the shrimp body, outputting a shrimp body mask, bounding box, and key point heatmap, specifically: Receive the output top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image, and perform spatial registration on the top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image; The intrinsic and extrinsic parameters of the top-view camera, side-view camera, and transmission imaging unit were calibrated using a checkerboard calibration plate. Epipolar correction was performed on the top-view and side-view images to establish the pixel correspondence of the same shrimp in the top-view and side-view images. Near-infrared transmission images are registered to the top view image coordinate system through affine transformation. The three registered images are then stitched together by channel to form a multimodal input tensor, which is used to construct the backbone encoder of DAIS-Net. An improved ResNet-101 is used as the basic skeleton. A contour-following deformable convolution module is embedded in the residual blocks of Stage 3, Stage 4 and Stage 5, and the contour-following deformable convolution module is used to constrain the tangent direction of the shrimp contour.

[0009] Furthermore, the non-destructive methods for determining shrimp phenotypic traits also include: In each layer of the feature pyramid, a location-aware channel-spatial attention module is introduced. The feature map is subjected to global average pooling and global max pooling respectively through the location-aware channel-spatial attention module. After being shared by MLP, the values ​​are summed to obtain the channel weights. Simultaneously, the average and maximum values ​​along the channel dimension are taken, concatenated, and then convolved to generate spatial weights. The key point heatmap is downsampled to the current feature map size to generate a location prior map, forming the final attention. Construct a feature pyramid that integrates top-down and bottom-up features. Upsample high-level features and predict the offset of low-level features relative to high-level features through deformable convolution. After deformable sampling of low-level features, fuse them with high-level features. The fused features are then output after 3×3 convolution and BN-ReLU. The backbone encoder of the DAIS-Net is used to output the shrimp body mask, bounding box, key point heatmap, and visibility probability of each key point.

[0010] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, the occlusion status of each key point is determined by analyzing the peak confidence and spatial continuity of the key point heatmap. For occluded key points, coordinate inference and correction are performed using a graph neural network based on the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points. Specifically, this includes: For each key point output by the backbone encoder of the DAIS-Net, the occlusion status of each key point is determined by analyzing the peak confidence and spatial continuity of the key point heatmap. For occluded key points, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points are used to calculate the occlusion probability. A dynamic skeleton map of shrimp is constructed using a graph neural network, where each key point is a node. The node features include the peak confidence of the key point heatmap, the visibility confidence of the network output, and the CNN features of local image patches centered on the key points. The edges are established based on the anatomical structure of shrimp, including chain edges and jumping edges. Chain edges connect adjacent abdominal segments, the anterior and posterior margins of the cephalothorax, the rostrum and eyestalk, while jumping edges connect left and right symmetrical points, the rostrum and the tail fan. Edge features include standard skeleton length, current distance, included angle, and visibility differences. A gated graph attention network is used to correct the coordinates of occluded key points. The network outputs the corrected coordinates and visibility of each key point. For visible key points, the original coordinates are retained, while for occluded key points, the corrected coordinates are used. When a key point is occluded for multiple consecutive frames, a lightweight Transformer encoder is used to model the skeleton sequence within a preset frame, predict the coordinates of the occluded key point in the current frame, and output the corrected uncertainty.

[0011] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, an appearance embedding vector and a motion state vector are extracted for each shrimp. The Hungarian algorithm is then used for joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Specifically, this includes: For each detected shrimp, an appearance embedding vector is extracted, including global appearance features, local key point features, and carapace pigment fingerprint. The global appearance features, local key point features, and carapace pigment fingerprint are then fused to obtain a fused appearance embedding. An interactive multi-model Kalman filter is established for each shrimp. The model set includes: uniform swimming model, acceleration / deceleration model, turning model, hovering / stationary model, and state vector is constructed. Each model makes independent predictions, and the final predicted state and covariance are output based on the model probability weighting. When the probability of detection or trajectory occlusion is higher than a preset threshold, the appearance weight is reduced and the motion weight is increased; when the motion mode is hovering, the appearance and shape weights are increased, thus completing the dynamic adjustment of the motion mode weights. Meanwhile, the Hungarian algorithm is used to solve the minimum cost matching problem. The Kalman state and appearance embedding are updated for the matched trajectories, and the unmatched detection is initialized as a new trajectory with a temporary ID. For unmatched trajectories, if the loss judgment threshold is exceeded, they are marked as lost; if the deletion threshold is exceeded, they are deleted. For lost trajectories, motion prediction is used to continue extrapolation, and if the rematch threshold is exceeded, they are rematched and the ID is restored.

[0012] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, the measurement results of the same shrimp in multiple consecutive frames are used. Through sliding window weighted averaging and outlier removal, smoothed phenotypic measurement results are output, specifically including: Based on the corrected key points and segmentation mask, phenotypic parameters are calculated, including body length, cephalothorax length, abdominal segment length, body width, body thickness, and weight estimate, with each phenotypic value accompanied by a confidence level; Define a standard pose skeleton template, map the current key point coordinates to the standard pose through a thin plate spline, perform synchronous transformation on the segmentation mask and phenotypic measurement values, and finally output the phenotypic value after pose normalization. At the same time, model the phenotypic measurement as a state space model. Kalman filtering is used for forward recursion, followed by RTS smoothing for backward recursion to obtain the optimal estimate of the phenotype for each frame. Outliers are identified, and for each shrimp, the following are output: identity ID, phenotype value, phenotype uncertainty, measurement timestamp, attitude quality score, and tracking trajectory score.

[0013] A second aspect of the present invention provides a non-destructive testing system for shrimp phenotypic traits, including a memory and a processor. The memory includes a program for a non-destructive testing method for shrimp phenotypic traits. When the processor executes the program for a non-destructive testing method for shrimp phenotypic traits, it implements the steps of any of the non-destructive testing methods for shrimp phenotypic traits described in the present invention.

[0014] A third aspect of the present invention provides an apparatus comprising a method program for non-destructive determination of shrimp phenotypic traits, wherein when the method program is executed by a processor, it implements the steps of any of the methods for non-destructive determination of shrimp phenotypic traits.

[0015] This invention addresses the shortcomings of the prior art and has the following beneficial effects: This invention maintains a certain level of accuracy even in high-density aquaculture scenarios where individual shrimp severely occlude each other and their bodies are constantly moving and exhibiting varied postures. This is significantly more accurate than traditional keypoint detection methods under occlusion and extreme posture conditions. Furthermore, this solution significantly improves measurement robustness in complex scenarios through deformable convolutional adaptive contour deformation, graph neural network inference of occlusion keypoints, and appearance-motion joint tracking. Finally, this solution achieves simultaneous acquisition of water scattering suppression and internal tissue perception at the hardware level through active light field modulation and polarization difference technology, providing a high-quality data foundation for subsequent multimodal fusion. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained from these drawings without creative effort.

[0017] Figure 1 The overall flowchart of the non-destructive determination method for shrimp phenotypic traits is shown; Figure 2 A system block diagram of a non-destructive determination system for shrimp phenotypic traits is shown. Detailed Implementation

[0018] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0019] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0020] Example 1 like Figure 1 As shown, the first aspect of the present invention provides a non-destructive method for determining the phenotypic traits of shrimp, comprising the following steps: Top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp were acquired. An adaptive instance segmentation network was used to enhance the feature response of key parts of the shrimp body, and the shrimp body mask, bounding box, and key point heat map were output. By analyzing the peak confidence and spatial continuity of the key point heatmap, the occlusion status of each key point is determined. For occluded key points, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points are used to perform coordinate inference and correction through a graph neural network. For each shrimp, an appearance embedding vector and a motion state vector are extracted. The Hungarian algorithm is used to perform joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Using measurement results of the same shrimp in multiple consecutive frames, a smoothed phenotypic measurement result is output through sliding window weighted averaging and outlier removal.

[0021] It should be noted that this invention maintains a certain level of accuracy even in high-density aquaculture scenarios where individual shrimp severely occlude each other and their bodies are constantly moving and exhibiting varied postures. Compared to traditional keypoint detection methods, this method achieves higher accuracy under occlusion and extreme posture conditions. Furthermore, this solution significantly improves measurement robustness in complex scenarios through deformable convolutional adaptive contour deformation, graph neural network inference of occlusion keypoints, and appearance-motion joint tracking. Finally, this solution achieves simultaneous acquisition of water scattering suppression and internal tissue perception at the hardware level through active light field modulation and polarization difference technology, providing a high-quality data foundation for subsequent multimodal fusion.

[0022] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp are acquired, specifically: A programmable LED array is arranged on the inner wall of the acquisition dark box, which includes polarized LEDs in the visible light band and the near-infrared band. Each LED in each band is equipped with a rotatable polarizer, and the polarization angle is controlled by a stepper motor. The light source array is time-coded and modulated by an FPGA controller, and different combinations of bands and polarization directions are lit up sequentially in a single acquisition cycle. Two high-sensitivity polarization cameras were placed on the top and side wall of the acquisition dark box, respectively. Each camera was equipped with an analyzer synchronized with the polarization direction of the light source. By calculating the image difference of different polarization directions under the same band, the contrast of shrimp surface texture and contour was enhanced. Near-infrared transmission light source is set at the bottom of the acquisition channel. By taking advantage of the difference in the absorption coefficient of near-infrared light between the shrimp carapace and internal tissue, transmission images are obtained. All light sources and cameras are hardware-level synchronized and triggered by the same FPGA main control board. After the data collection was completed, top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of the shrimp were acquired.

[0023] It should be noted that the inner wall of the acquisition chamber is equipped with a programmable LED array, including polarized LEDs in the visible light band (450nm, 530nm, 660nm) and the near-infrared band (850nm, 940nm). Each LED in each band is equipped with a rotatable polarizer, and the polarization angle is controlled by a stepper motor, enabling rapid switching between four polarization directions: 0°, 45°, 90°, and 135°. The light source array is time-coded and modulated by an FPGA controller, sequentially illuminating combinations of different bands and polarization directions within a single acquisition cycle. Furthermore, two high-sensitivity polarization cameras (resolution no less than 2048×2048) are used, positioned at the top (top view) and side wall (side view) of the acquisition chamber, respectively. Each camera is equipped with an analyzer synchronized with the polarization direction of the light source. By calculating the image difference between different polarization directions within the same band (i.e., polarization difference image), water scattering noise is effectively suppressed, enhancing the contrast of shrimp surface texture and contours. A near-infrared transmission light source (wavelength range adjustable from 750-950nm) is set at the bottom of the acquisition channel. By utilizing the difference in near-infrared light absorption coefficients between the shrimp's carapace and internal tissues, transmission images are acquired. In the transmission images, areas with high carapace calcification (such as the cephalothorax) exhibit high attenuation characteristics, while areas rich in muscle tissue (such as the abdomen) exhibit low attenuation characteristics, thus achieving non-invasive imaging of the shrimp's internal tissues.

[0024] It should be noted that this solution, through active light field modulation and polarization difference technology, achieves simultaneous acquisition of water scattering suppression and internal tissue perception at the hardware level, providing a high-quality data foundation for subsequent multimodal fusion. This method can reduce water scattering noise by more than 60% using polarization difference imaging; transmission near-infrared imaging can acquire information on shell calcification and muscle distribution without damaging the shrimp, providing a data source for soft-shell identification and meat quality assessment.

[0025] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, an adaptive instance segmentation network is used to enhance the feature response of key parts of the shrimp body, outputting a shrimp body mask, bounding box, and key point heatmap, specifically: Receive the output top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image, and perform spatial registration on the top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image; The intrinsic and extrinsic parameters of the top-view camera, side-view camera, and transmission imaging unit were calibrated using a checkerboard calibration plate. Epipolar correction was performed on the top-view and side-view images to establish the pixel correspondence of the same shrimp in the top-view and side-view images. Near-infrared transmission images are registered to the top view image coordinate system through affine transformation. The three registered images are then stitched together by channel to form a multimodal input tensor, which is used to construct the backbone encoder of DAIS-Net. An improved ResNet-101 is used as the basic skeleton. Embed contour-following deformable convolution modules in the residual blocks of Stage 3, Stage 4 and Stage 5, and use the contour-following deformable convolution modules to constrain the tangent direction of the shrimp contour.

[0026] It should be noted that this step, through multimodal spatial registration, enables the network to simultaneously utilize top-view contour, side-view thickness, and transmission internal structure information, providing richer input for subsequent instance segmentation. This is a non-obvious multimodal preprocessing mechanism. In this process, the backbone encoder of DAIS-Net is constructed, using an improved ResNet-101 as the basic skeleton, and contour-following deformable convolutional modules are embedded in the residual blocks of Stage 3, Stage 4, and Stage 5.

[0027] Offset of traditional deformable convolution The learning is free-form by the network and lacks geometric constraints. Our proposed solution uses "contour-following deformable convolution," where the offset is generated jointly by shallow edge features and prior keypoint heatmaps. , in: This is the unit vector of the tangent direction of the shrimp outline at the current sampling point; The value range represents the contour following intensity predicted from the edge intensity map. ; The original learned offset for deformable convolution; This is the learnable scaling factor. It is the first The final deformable offset of each sampling point.

[0028] The deformable convolution output is: , It is a deformable convolutional layer at the output feature map position The output value at that location. R represents the current center position coordinates on the output feature map. R is the regular convolution sampling grid. It is a sampling grid The first in Each sampling point is relative to the center A fixed offset. It is the convolution kernel at regular sampling points Learnable weights at each location. It is the input feature map. It is the first The final deformable offset of each sampling point. The modulation scalar is predicted by the contour prior branch and used to suppress water background and reflective noise.

[0029] It should be noted that this scheme decomposes the offset into "contour tangent prior + free learning residual", enabling the convolution kernel to adaptively distribute along the shrimp's body contour, significantly improving the edge response of the translucent carapace, curved abdominal segments, and rostrum tip. This mechanism is not a simple application of general deformable convolution, but a specialized design for the morphological characteristics of shrimp.

[0030] Furthermore, the non-destructive methods for determining shrimp phenotypic traits also include: In each layer of the feature pyramid, a location-aware channel-spatial attention module is introduced. The feature map is subjected to global average pooling and global max pooling respectively through the location-aware channel-spatial attention module. After being shared by MLP, the values ​​are summed to obtain the channel weights. Simultaneously, the average and maximum values ​​along the channel dimension are taken, concatenated, and then convolved to generate spatial weights. The key point heatmap is downsampled to the current feature map size to generate a location prior map, forming the final attention. Construct a feature pyramid that integrates top-down and bottom-up features. Upsample high-level features and predict the offset of low-level features relative to high-level features through deformable convolution. After deformable sampling of low-level features, fuse them with high-level features. The fused features are then output after 3×3 convolution and BN-ReLU. The backbone encoder of DAIS-Net is used to output the shrimp body mask, bounding box, key point heatmap and visibility probability of each key point.

[0031] It should be noted that this scheme enhances the feature responses of key areas such as the frontal sphene, tail fan, and abdominal segment junctions through location prior maps, while suppressing interfering areas such as gill reflection and suspended particles in the water. This combination of "anatomical prior + channel-space joint attention" improves the accuracy of key point detection. Furthermore, this scheme uses cross-layer deformable alignment to precisely align multi-scale features along the shrimp's body contour, reducing feature blurring caused by posture curvature. This mechanism works synergistically with contour-following deformable convolution, representing an innovative design for the non-rigid morphology of shrimp.

[0032] It should be noted that by using multimodal spatial registration and DAIS-Net, the network can simultaneously utilize top-view contour, side-view thickness, and transmission internal structure information, maintaining high segmentation and key point detection accuracy even under occlusion and low contrast conditions.

[0033] It should be noted that the total loss function is: , in: This is the sum of Dice loss and BCE loss; For key point heatmap MSE loss; Visibility binary classification cross-entropy; CIoU bounding box regression loss; The loss of anatomical constraints includes constraints on the proportion of abdominal segment length, constraints on the angle range between the frontoxiphoid process and the cephalothorax, and constraints on left-right symmetry. All are weighting coefficients.

[0034] The training strategy employs a course-based learning approach: Phase 1: Training with clear single shrimp images; Phase 2: Incorporating artificially synthesized occlusion and low-contrast images; Phase 3: Incorporating high-density scenes with multiple shrimp; Phase 4: Incorporating edge-level quantization perception training.

[0035] It should be noted that this scheme uses a multi-task decoding head to jointly output segmentation, key points, visibility, and bounding boxes, and incorporates anatomical constraints into the loss function, so that the network can maintain structural rationality under occlusion and low contrast conditions.

[0036] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, the occlusion status of each key point is determined by analyzing the peak confidence and spatial continuity of the key point heatmap. For occluded key points, coordinate inference and correction are performed using a graph neural network based on the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points. Specifically, this includes: For each keypoint output by the backbone encoder of DAIS-Net, the occlusion status of each keypoint is determined by analyzing the peak confidence and spatial continuity of the keypoint heatmap. For occluded keypoints, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected keypoints are used to calculate the occlusion probability. A dynamic skeleton map of shrimp is constructed using a graph neural network, where each key point is a node. The node features include the peak confidence of the key point heatmap, the visibility confidence of the network output, and the CNN features of local image patches centered on the key points. The edges are established based on the anatomical structure of shrimp, including chain edges and jumping edges. Chain edges connect adjacent abdominal segments, the anterior and posterior margins of the cephalothorax, the rostrum and eyestalk, while jumping edges connect left and right symmetrical points, the rostrum and the tail fan. Edge features include standard skeleton length, current distance, included angle, and visibility differences. A gated graph attention network is used to correct the coordinates of occluded key points. The network outputs the corrected coordinates and visibility of each key point. For visible key points, the original coordinates are retained, while for occluded key points, the corrected coordinates are used. When a key point is occluded for multiple consecutive frames, a lightweight Transformer encoder is used to model the skeleton sequence within a preset frame, predict the coordinates of the occluded key point in the current frame, and output the corrected uncertainty.

[0037] It should be noted that for each keypoint in the DAIS-Net output, the occlusion probability is calculated: , in: Confidence level of peak values ​​in the heatmap for key points; This refers to the deviation of the distance between this keypoint and its adjacent keypoints relative to the standard skeleton length; To ensure the temporal consistency of this key point across multiple consecutive frames; The visibility confidence level of the network output; These are learnable weights. When (like When the key point is determined to be occluded, the correction process begins. This represents the Sigmoid function.

[0038] It should be noted that this scheme uses a gating graph attention network to guide the correction of invisible keypoints by visible keypoints, while maintaining reasonable skeleton length and angle. Furthermore, this scheme uses Transformer temporal propagation to predict currently occluded keypoints using historical skeleton motion and outputs uncertainty, providing a basis for subsequent weighted fusion.

[0039] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, an appearance embedding vector and a motion state vector are extracted for each shrimp. The Hungarian algorithm is then used for joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Specifically, this includes: For each detected shrimp, an appearance embedding vector is extracted, including global appearance features, local key point features, and carapace pigment fingerprint. The global appearance features, local key point features, and carapace pigment fingerprint are then fused to obtain a fused appearance embedding. An interactive multi-model Kalman filter is established for each shrimp. The model set includes: uniform swimming model, acceleration / deceleration model, turning model, hovering / stationary model, and state vector is constructed. Each model makes independent predictions, and the final predicted state and covariance are output based on the model probability weighting. When the probability of detection or trajectory occlusion is higher than a preset threshold, the appearance weight is reduced and the motion weight is increased; when the motion mode is hovering, the appearance and shape weights are increased, thus completing the dynamic adjustment of the motion mode weights. Meanwhile, the Hungarian algorithm is used to solve the minimum cost matching problem. The Kalman state and appearance embedding are updated for the matched trajectories, and the unmatched detection is initialized as a new trajectory with a temporary ID. For unmatched trajectories, if the loss judgment threshold is exceeded, they are marked as lost; if the deletion threshold is exceeded, they are deleted. For lost trajectories, motion prediction is used to continue extrapolation, and if the rematch threshold is exceeded, they are rematched and the ID is restored.

[0040] It should be noted that an appearance embedding vector is extracted for each detected shrimp: Global appearance features: Shrimp body regions are cropped based on segmentation masks, input into a lightweight ReID network, and output as 128-dimensional global embeddings. ; Local keypoint features: Local CNN features are extracted around key points such as the sirens, cephalothorax, abdominal segments, and tail fan, and then pooled to obtain local embeddings. ; Carapace pigment fingerprint: Extracting the pigment distribution pattern on the shrimp's body surface, including hue histogram, texture LBP features, and polarization difference texture features, to form a non-invasive individual identification fingerprint. Embedded appearance: , The fused embedding vector, , , All are fusion weighting coefficients.

[0041] It should be noted that this solution introduces interactive multi-model Kalman filtering to establish multiple motion models for typical shrimp behaviors, significantly improving trajectory prediction accuracy under occlusion and interactive conditions.

[0042] It should be noted that the appearance embedding update uses adaptive momentum: , It is the appearance embedding vector at time t. It is the appearance embedding vector at time t-1. The appearance embedding direction is newly generated from time t-1 to t. This is the variation coefficient. When the occlusion probability is high, When visibility approaches 1, pause appearance updates; when visibility is high, Reduce size and update appearance quickly.

[0043] It should be noted that this solution introduces an occlusion-aware appearance update strategy in trajectory lifecycle management to avoid erroneous appearance contamination of the template during occlusion. This mechanism, in conjunction with the adaptive cost matrix, improves long-term tracking stability.

[0044] Furthermore, in the non-destructive method for determining shrimp phenotypic traits, the measurement results of the same shrimp in multiple consecutive frames are used. Through sliding window weighted averaging and outlier removal, smoothed phenotypic measurement results are output, specifically including: Based on the corrected key points and segmentation mask, phenotypic parameters are calculated, including body length, cephalothorax length, abdominal segment length, body width, body thickness, and weight estimate, with each phenotypic value accompanied by a confidence level; Define a standard pose skeleton template, map the current key point coordinates to the standard pose through a thin plate spline, perform synchronous transformation on the segmentation mask and phenotypic measurement values, and finally output the phenotypic value after pose normalization. At the same time, model the phenotypic measurement as a state space model. Kalman filtering is used for forward recursion, followed by RTS smoothing for backward recursion to obtain the optimal estimate of the phenotype for each frame. Outliers are identified, and for each shrimp, the following are output: identity ID, phenotype value, phenotype uncertainty, measurement timestamp, attitude quality score, and tracking trajectory score.

[0045] It should be noted that the phenotypic values ​​include body length, cephalothorax length, abdominal segment length, body width, body thickness, and estimated body weight.

[0046] In addition, this method also includes: An array of controllable stimulation sources, including light stimulation sources, water flow stimulation sources, and sound stimulation sources, is arranged on the walls and bottom of the measurement channel. It should be noted that the light stimulus source is a programmable LED array, which induces phototaxis or photoavoidance behavior in shrimp through light stimulation of specific wavelengths and flashing frequencies. Water flow stimulus: Microjet array, which induces directional swimming of shrimp through local water flow stimulation; Sound stimulus source: underwater speaker, playing sound signals of a specific frequency to induce startle or orientation response in shrimp.

[0047] Establish a response model of shrimp posture to stimuli, and establish the mapping relationship between wavelength, intensity, frequency, and direction stimulus parameters and shrimp turning angle, pitch angle, and swimming direction through offline experiments; The posture score of the shrimp is calculated in real time to determine whether the posture score of the shrimp is lower than a preset posture score threshold. Real-time calculation of shrimp posture score: , in This is the yaw angle deviation. For pitch angle deviation, The score represents abdominal curvature. When the score exceeds a threshold, it is determined to be the "optimal measurement window," triggering the phenotypic extraction process of Scheme Two. The three factors are the posture scoring weights, and their sum is 1.

[0048] When the shrimp's posture score is lower than a preset posture score threshold, the optimal stimulus scheme is selected according to the response model. The selection of the stimulus scheme is constrained by the stimulus intensity and the stimulus history. When the shrimp's posture score is not lower than a preset posture score threshold, the current stimulation scheme remains unchanged.

[0049] It should be noted that the accuracy of phenotypic extraction is highly dependent on the shrimp's posture in the image. When shrimp are in non-standard postures such as rolling, pitching, or curling, even if keypoint detection is accurate, the measurement of body length and abdominal segment length will produce systematic biases. Scheme 2 uses thin plate splines for posture normalization (2.4.2), but thin plate splines are based on posterior correction of known standard postures, and the correction effect is limited when the posture deviation is too large. Existing shrimp measurement systems are all passive, that is, they wait for the shrimp to appear in the field of view in a suitable posture before measurement, which is inefficient and uncontrollable. This method can actively guide the shrimp to adjust its posture through controllable environmental stimuli and trigger measurement within the optimal viewing window, fundamentally solving the posture deviation problem. Thus, the shrimp posture is transformed from "passive waiting" to "active control", and the shrimp posture is guided to the optimal viewing window before measurement through multimodal stimulus sources and shrimp response models. This closed-loop active vision mechanism of "stimulus-response-scoring-trigger" has not been reported in existing aquatic measurement technologies. Compared with the post-hoc correction of thin plate spline in Scheme 2, this scheme reduces attitude deviation from the source, thus significantly reducing the systematic error of subsequent measurements.

[0050] In addition, this method also includes: Contrast learning samples were constructed from unlabeled shrimp videos, including spatial positive samples, temporal positive samples, spatial negative samples, and temporal negative samples. A temporal contrast loss for motion perception was designed to enable the network to learn the isovariability of shrimp posture changes. Among them, spatial positive samples are two views of the same part of a shrimp in the same frame after different data augmentations (random cropping, color jittering, and polarization channel swapping). Positive temporal samples: Image patches of the same shrimp in adjacent frames, associated through optical flow or tracking algorithms; Spatial negative samples: image patches of different shrimp in the same frame; Temporal negative samples: Image patches at the same location but spaced far apart in time (ensuring they are not from the same shrimp).

[0051] Among them, the temporal contrast loss for motion perception is designed. This enables the network to learn the isovariability of shrimp posture changes: , in For the first Frame number Feature embedding of shrimp tails For cosine similarity, This is the temperature coefficient. It is the first Frame number Feature embedding of shrimp tails. Positive sample pairs are not simply the same image patch, but rather the same shrimp tail within... The network needs to learn the invariance of shrimp's swimming, turning, bending, and other posture changes after the frame.

[0052] Using polarization imaging data, a polarization consistency self-supervised task is designed. Images of the same scene at different polarization angles have consistent semantic segmentation results, and the mask predicted by the network should remain stable under changes in polarization angle. Design a task to ensure the temporal consistency of key point heatmaps: The key point heatmaps predicted by the network for adjacent frames should satisfy optical flow constraints so that the network can learn the temporal motion patterns of the key points; Design a polarization consistency self-supervised task: Images of the same scene at different polarization angles should have consistent semantic segmentation results. The mask predicted by the network should remain stable under changes in polarization angle. , in Images of the same scene at different polarization angles are presented. This task forces the network to learn polarization-independent shrimp body features to suppress water reflection interference. It is a polarization consistency self-supervised loss.

[0053] Keypoint heatmap temporal consistency task: The keypoint heatmaps predicted by the network for adjacent frames should satisfy optical flow constraints. , in For the first The key point is Heatmap of frames It is the first The key point is Heatmap of frames For optical flow field, This involves optical flow warping operations. This task enables the network to learn the temporal motion patterns of key points, providing temporal priors for subsequent occlusion correction. The key point is the self-supervised loss of optical flow consistency.

[0054] After pre-training, only a small number of labeled samples are needed to fine-tune DAIS-Net. During fine-tuning, the shallow layers of the backbone encoder are frozen, and only the deep layers and the decoder head are updated.

[0055] It should be noted that this method proposes a three-in-one self-supervised pre-training framework combining "temporal comparison of shrimp motion perception + polarization consistency + keypoint optical flow consistency". The polarization consistency task utilizes the unique polarization imaging capability of Scheme 1, a self-supervised signal specific to the field of shrimp phenotyping; the keypoint optical flow consistency task combines keypoint detection and optical flow estimation with joint self-supervision. This scheme is not a simple application of general self-supervised learning, but a specialized design tailored to the perceptual characteristics of shrimp.

[0056] like Figure 2 As shown, the second aspect of the present invention provides a non-destructive testing system for shrimp phenotypic traits, including a memory and a processor. The memory includes a program for a non-destructive testing method for shrimp phenotypic traits. When the program for a non-destructive testing method for shrimp phenotypic traits is executed by the processor, it implements any of the steps of the non-destructive testing method for shrimp phenotypic traits.

[0057] A third aspect of the present invention provides an apparatus comprising a method program for non-destructive determination of shrimp phenotypic traits, wherein when the method program is executed by a processor, it implements any of the steps of the method for non-destructive determination of shrimp phenotypic traits.

[0058] Example 2 In this embodiment, a programmable LED array is arranged on the inner wall of the acquisition chamber. The visible light bands include 450nm, 530nm, and 660nm, and the near-infrared bands include 850nm and 940nm. Each LED in each band is equipped with a rotatable polarizer, driven by a stepper motor, to achieve switching between four polarization directions: 0°, 45°, 90°, and 135°, with a single polarization switching time ≤20ms. The light source array is time-coded and modulated by an FPGA controller, sequentially illuminating combinations of different bands and polarization directions within a single acquisition cycle.

[0059] A high-sensitivity polarization camera with a resolution of 2048×2048 and a frame rate of 60fps is mounted on the top and side walls respectively. An analyzer synchronized with the polarization direction of the light source is placed in front of the camera. A near-infrared transmission light source with an adjustable wavelength in the range of 750-950nm is placed at the bottom of the acquisition channel. All light sources and cameras are synchronously triggered at the hardware level by the same FPGA main control board, with synchronization jitter <1μs.

[0060] The subjects collected were Litopenaeus vannamei, with body lengths ranging from 55 to 132 mm and weights from 3.2 to 18.6 g. The culture water temperature was 26±1℃, and the water turbidity ranged from 15 to 45 NTU. The density in high-density scenes was 30 to 45 shrimp / m². A total of 1200 shrimp were collected, resulting in 12,000 frames of multimodal image data, of which 2400 frames were annotated. The training, validation, and test sets were divided in a 7:1:2 ratio. Annotations included shrimp body masks, bounding boxes, 12 keypoints, and visibility.

[0061] Under a turbidity of 35 NTU, the contrast between polarization-difference images and ordinary visible light images was statistically analyzed. The average contrast of the ordinary visible light image was 0.312, while the average contrast of the polarization-difference image was 0.827. Using the standard deviation of the water region and the shrimp edge gradient as a combined evaluation, polarization-difference imaging reduced water scattering noise by an average of 62.3%. In the near-infrared transmission image, the average grayscale attenuation rate in the cephalothorax region was 38.7%, and the average grayscale attenuation rate in the abdominal muscle region was 16.4%, allowing for the differentiation between carapace calcification areas and muscle-rich areas.

[0062] Example 3 In this embodiment, the DAIS-Net backbone encoder uses an improved ResNet-101, with an input multimodal tensor size of 1024×1024×9, including 3 channels for the top-view polarization difference image, 3 channels for the side-view polarization difference image, and 3 channels for the registered near-infrared transmission image. Contour-following deformable convolutions are embedded in the residual blocks of Stages 3, 4, and 5, with the contour-following intensity α ranging from [0,1] and β initialized to 0.5. The feature pyramid has layers P2–P5, and a part-aware channel-spatial attention module is embedded before the fusion output of each layer. The total loss weights are set to λ1=1.0, λ2=1.0, λ3=0.5, λ4=0.5, and λ5=0.2.

[0063] Training employed a course-based learning approach: the first phase used clear single-shrimp images for 30 epochs; the second phase incorporated artificially synthesized occlusion and low-contrast images for 30 epochs; the third phase included high-density scenes with multiple shrimp for 30 epochs; and the fourth phase incorporated edge-sensing quantization for 10 epochs. The optimizer was AdamW, with an initial learning rate of 1×10⁻⁶. -4 Weight decay 1×10 -4 The batch size is 8, and cosine annealing is used for scheduling. Data augmentation includes random cropping, color dithering, polarization channel swapping, random occlusion, and motion blur.

[0064] Evaluation metrics included segmentation mIoU, keypoint PCK@0.05 (normalized distance threshold was 5% of the diagonal of the shrimp body bounding box), and visibility classification accuracy. Comparison methods included Mask R-CNN, HRNet+ResNet50, and a baseline network without the improved module of this invention. Test results are shown in Table 1.

[0065] Table 1. Comparison of Segmentation and Keypoint Detection Experimental Results

[0066] On a high-density test subset with occlusion of 20%–60%, the segmentation mIoU of the DAIS-Net of this invention was 89.8%, and the keypoint PCK@0.05 was 88.6%; the baseline methods were 81.2% and 76.9%, respectively. On a low-contrast subset (turbidity 40–45 NTU), the segmentation mIoU of the DAIS-Net of this invention was 90.4%, and the keypoint PCK@0.05 was 91.2%; the baseline methods were 79.7% and 78.5%, respectively. In 5-fold cross-validation, the standard deviation of the mIoU of the DAIS-Net of this invention was 0.6%, and the standard deviation of PCK was 0.8%.

[0067] The results of the ablation experiments are shown in Table 2. As can be seen from Table 2, contour-following deformable convolution, location-aware attention, bidirectional deformable feature pyramid, and multimodal fusion all contribute to the performance.

[0068] Table 2. Results of DAIS-Net ablation experiments

[0069] Example 4

[0070] In this embodiment, the occlusion probability threshold τ is set to 0.6. The graph neural network has 12 nodes, a node feature dimension of 128, and an edge feature dimension of 32; the gating graph attention network has 3 layers and 4 attention heads. When a keypoint is occluded for more than 3 consecutive frames, a lightweight Transformer encoder is enabled, with a sequence length of 8 frames and a hidden dimension of 128, outputting corrected coordinates and corrected uncertainty.

[0071] The performance of keypoint correction was evaluated on artificially constructed occlusion and real high-density occlusion test sets. The test set contained 800 occluded keypoint samples, with occlusion rates ranging from 20% to 70%. The evaluation metrics were PCK@0.05 and skeleton length error. The experimental results are shown in Table 3.

[0072] Table 3. Key Points of Obstruction Correction in Ablation Experiments

[0073] As shown in Table 3, after introducing graph neural network correction, the occlusion keypoint PCK@0.05 improved from 78.9% to 85.4%; further, after introducing Transformer temporal propagation, it improved to 88.6%, and the average relative error of skeleton length decreased from 6.8% to 3.2%. In hard samples with occlusion probability greater than 0.8, the keypoint PCK@0.05 of the method of this invention is 84.2%, while that of the uncorrected method is 71.5%.

[0074] Example 5 In this embodiment, the appearance embedding dimension is 128, and the fusion weights W1=0.5, W2=0.3, and W3=0.2. The interactive multi-model Kalman filter includes four models: uniform motion, acceleration / deceleration, steering, and hovering / stationary. The model transition probability matrix is ​​initialized with a diagonal of 0.85 and the rest evenly distributed. The Hungarian algorithm matching cost is a weighted sum of the appearance cosine distance and the motion Mahalanobis distance; when the occlusion probability is greater than 0.6, the appearance weight decreases from 0.6 to 0.2, and the motion weight increases from 0.4 to 0.8. The appearance update momentum η is 0.95 when the occlusion probability is high and 0.3 when the visibility is high.

[0075] The test video contained 30 high-density sequences, each containing 30-60 shrimp, with a total of 18,000 frames. Evaluation metrics included MOTA, IDF1, HOTA, and ID switching count (IDSW). Comparison methods included DeepSORT and ByteTrack. Experimental results are shown in Table 4.

[0076] Table 4. Tracking and comparison experiment of multiple shrimp.

[0077] The tracking ablation experiment results are shown in Table 5. As can be seen from Table 5, interactive multi-model Kalman filtering, fused appearance embedding, and occlusion adaptive update strategies can all improve tracking performance.

[0078] Table 5 Ablation Experiment of Tracking Module

[0079] Example 6

[0080] In this embodiment, the body length, cephalothorax length, abdominal segment length, body width, body thickness, and weight estimates are calculated based on corrected key points and segmentation masks. Pose normalization uses thin-plate spline mapping to a standard pose skeleton template. The phenotypic state-space model employs Kalman filtering forward recursion and RTS backward smoothing, with a sliding window length of 15 frames. Outlier removal uses a 3x median absolute deviation criterion.

[0081] Using manually measured values ​​as the true values, 300 shrimp were tested. Body length was measured manually using a digital caliper, and weight was measured using an electronic balance. Evaluation indicators included mean absolute error (MAE), mean absolute percentage error (MAPE), and coefficient of determination (R²). The experimental results are shown in Table 6.

[0082] Table 6. Experimental Results of Phenotypic Measurement Accuracy

[0083] The experimental results of phenotypic smoothing ablation are shown in Table 7. As can be seen from Table 7, after using Kalman filtering and RTS smoothing, the body length MAE decreased from 2.05 mm measured in a single frame to 1.12 mm.

[0084] Table 7 Phenotypic Smooth Ablation Experiment (body length)

[0085] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0086] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0087] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0088] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0089] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0090] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A non-destructive method for determining the phenotypic traits of shrimp, characterized in that, Includes the following steps: Top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp were acquired. An adaptive instance segmentation network was used to enhance the feature response of key parts of the shrimp body, and the shrimp body mask, bounding box, and key point heat map were output. By analyzing the peak confidence and spatial continuity of the key point heatmap, the occlusion status of each key point is determined. For occluded key points, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected key points are used to perform coordinate inference and correction through a graph neural network. For each shrimp, an appearance embedding vector and a motion state vector are extracted. The Hungarian algorithm is used to perform joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Using measurement results of the same shrimp in multiple consecutive frames, a smoothed phenotypic measurement result is output through sliding window weighted averaging and outlier removal.

2. The non-destructive method for determining the phenotypic traits of shrimp according to claim 1, characterized in that, Top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of shrimp were acquired, specifically: A programmable LED array is arranged on the inner wall of the acquisition dark box, which includes polarized LEDs in the visible light band and the near-infrared band. Each LED in each band is equipped with a rotatable polarizer, and the polarization angle is controlled by a stepper motor. The light source array is time-coded and modulated by an FPGA controller, and different combinations of bands and polarization directions are lit up sequentially in a single acquisition cycle. Two high-sensitivity polarization cameras were placed on the top and side wall of the acquisition dark box, respectively. Each camera was equipped with an analyzer synchronized with the polarization direction of the light source. By calculating the image difference of different polarization directions under the same band, the contrast of shrimp surface texture and contour was enhanced. Near-infrared transmission light source is set at the bottom of the acquisition channel. By taking advantage of the difference in the absorption coefficient of near-infrared light between the shrimp carapace and internal tissue, transmission images are obtained. All light sources and cameras are hardware-level synchronized and triggered by the same FPGA main control board. After the data collection was completed, top-view polarization difference images, side-view polarization difference images, and near-infrared transmission images of the shrimp were acquired.

3. The non-destructive method for determining the phenotypic traits of shrimp according to claim 1, characterized in that, An adaptive instance segmentation network is used to enhance the feature response of key parts of the shrimp body, and outputs shrimp body masks, bounding boxes, and key point heatmaps, specifically: Receive the output top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image, and perform spatial registration on the top-view polarization difference image, side-view polarization difference image, and near-infrared transmission image; The intrinsic and extrinsic parameters of the top-view camera, side-view camera, and transmission imaging unit were calibrated using a checkerboard calibration plate. Epipolar correction was performed on the top-view and side-view images to establish the pixel correspondence of the same shrimp in the top-view and side-view images. Near-infrared transmission images are registered to the top view image coordinate system through affine transformation. The three registered images are then stitched together by channel to form a multimodal input tensor, which is used to construct the backbone encoder of DAIS-Net. An improved ResNet-101 is used as the basic skeleton. A contour-following deformable convolution module is embedded in the residual blocks of Stage 3, Stage 4 and Stage 5, and the contour-following deformable convolution module is used to constrain the tangent direction of the shrimp contour.

4. The non-destructive method for determining the phenotypic traits of shrimp according to claim 3, characterized in that, Also includes: In each layer of the feature pyramid, a location-aware channel-spatial attention module is introduced. The feature map is subjected to global average pooling and global max pooling respectively through the location-aware channel-spatial attention module. After being shared by MLP, the values ​​are summed to obtain the channel weights. Simultaneously, the average and maximum values ​​along the channel dimension are taken, concatenated, and then convolved to generate spatial weights. The key point heatmap is downsampled to the current feature map size to generate a location prior map, forming the final attention. Construct a feature pyramid that integrates top-down and bottom-up features. Upsample high-level features and predict the offset of low-level features relative to high-level features through deformable convolution. After deformable sampling of low-level features, fuse them with high-level features. The fused features are then output after 3×3 convolution and BN-ReLU. The backbone encoder of the DAIS-Net is used to output the shrimp body mask, bounding box, key point heatmap, and visibility probability of each key point.

5. The non-destructive method for determining the phenotypic traits of shrimp according to claim 1, characterized in that, By analyzing the peak confidence and spatial continuity of the keypoint heatmap, the occlusion status of each keypoint is determined. For occluded keypoints, coordinate inference and correction are performed using a graph neural network based on the topological constraints of the shrimp posture skeleton and the coordinate information of the detected keypoints. Specifically, this includes: For each keypoint output by the backbone encoder of DAIS-Net, the occlusion status of each keypoint is determined by analyzing the peak confidence and spatial continuity of the keypoint heatmap. For occluded keypoints, the topological constraints of the shrimp posture skeleton and the coordinate information of the detected keypoints are used to calculate the occlusion probability. A dynamic skeleton map of shrimp is constructed using a graph neural network, where each key point is a node. The node features include the peak confidence of the key point heatmap, the visibility confidence of the network output, and the CNN features of local image patches centered on the key points. The edges are established based on the anatomical structure of shrimp, including chain edges and jumping edges. Chain edges connect adjacent abdominal segments, the anterior and posterior margins of the cephalothorax, the rostrum and eyestalk, while jumping edges connect left and right symmetrical points, the rostrum and the tail fan. Edge features include standard skeleton length, current distance, included angle, and visibility differences. A gated graph attention network is used to correct the coordinates of occluded key points. The network outputs the corrected coordinates and visibility of each key point. For visible key points, the original coordinates are retained, while for occluded key points, the corrected coordinates are used. When a key point is occluded for multiple consecutive frames, a lightweight Transformer encoder is used to model the skeleton sequence within a preset frame, predict the coordinates of the occluded key point in the current frame, and output the corrected uncertainty.

6. The non-destructive method for determining the phenotypic traits of shrimp according to claim 1, characterized in that, For each shrimp, an appearance embedding vector and a motion state vector are extracted. The Hungarian algorithm is then used for joint matching of appearance similarity and motion prediction error to achieve continuous individual tracking of multiple shrimp. Specifically, this includes: For each detected shrimp, an appearance embedding vector is extracted, including global appearance features, local key point features, and carapace pigment fingerprint. The global appearance features, local key point features, and carapace pigment fingerprint are then fused to obtain a fused appearance embedding. An interactive multi-model Kalman filter is established for each shrimp. The model set includes: uniform swimming model, acceleration / deceleration model, turning model, hovering / stationary model, and state vector is constructed. Each model makes independent predictions, and the final predicted state and covariance are output based on the model probability weighting. When the probability of detection or trajectory occlusion is higher than a preset threshold, the appearance weight is reduced and the motion weight is increased; when the motion mode is hovering, the appearance and shape weights are increased, thus completing the dynamic adjustment of the motion mode weights. Meanwhile, the Hungarian algorithm is used to solve the minimum cost matching problem. The Kalman state and appearance embedding are updated for the matched trajectories, and the unmatched detection is initialized as a new trajectory with a temporary ID. For unmatched trajectories, if the loss judgment threshold is exceeded, they are marked as lost; if the deletion threshold is exceeded, they are deleted. For lost trajectories, motion prediction is used to continue extrapolation, and if the rematch threshold is exceeded, they are rematched and the ID is restored.

7. The non-destructive method for determining the phenotypic traits of shrimp according to claim 1, characterized in that, Using measurement results of the same shrimp across multiple consecutive frames, a smoothed phenotypic measurement result is output through sliding window weighted averaging and outlier removal, specifically including: Based on the corrected key points and segmentation mask, phenotypic parameters are calculated, including body length, cephalothorax length, abdominal segment length, body width, body thickness, and weight estimate, with each phenotypic value accompanied by a confidence level; Define a standard pose skeleton template, map the current key point coordinates to the standard pose through a thin plate spline, perform synchronous transformation on the segmentation mask and phenotypic measurement values, and finally output the phenotypic value after pose normalization. At the same time, model the phenotypic measurement as a state space model. Kalman filtering is used for forward recursion, followed by RTS smoothing for backward recursion to obtain the optimal estimate of the phenotype for each frame. Outliers are identified, and for each shrimp, the following are output: identity ID, phenotype value, phenotype uncertainty, measurement timestamp, attitude quality score, and tracking trajectory score.

8. A non-destructive system for determining the phenotypic traits of shrimp, characterized in that, The device includes a memory and a processor. The memory includes a program for non-destructive testing of shrimp phenotypic traits. When the processor executes the program for non-destructive testing of shrimp phenotypic traits, it implements the steps of the non-destructive testing method for shrimp phenotypic traits as described in any one of claims 1-7.

9. An apparatus, characterized in that, The method includes a non-destructive testing procedure for shrimp phenotypic traits. When the non-destructive testing procedure for shrimp phenotypic traits is executed by a processor, it implements the steps of the non-destructive testing method for shrimp phenotypic traits as described in any one of claims 1-7.