An underwater shrimp contour and viscera feature recognition system
By using the Res-Unet50 neural network and semantic segmentation algorithm, combined with appropriate hardware and software design and data augmentation technology, the problem that traditional detection methods cannot scientifically assess the health status of shrimp has been solved, and high-precision identification and real-time monitoring of underwater shrimp outlines and organ features have been achieved.
Patent Information
- Application Number
- CN202311428510.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-31
AI Technical Summary
Traditional detection methods rely on human experience to judge the growth status and health level of shrimp, which cannot scientifically assess the health status of shrimp. Furthermore, existing technologies are difficult to perform non-destructive, real-time identification of shrimp outlines and organ features underwater.
The Res-Unet50 neural network is used for underwater shrimp image processing. Combining semantic segmentation algorithm and minimum bounding rectangle algorithm, the shrimp outline and organ features are identified. With appropriate hardware and software design and data augmentation techniques, a supervised learning dataset is constructed to achieve high-precision segmentation of underwater target shrimp images.
It achieves high-precision identification of shrimp outlines and organs, providing a reliable basis for shrimp health status, supporting zero-contact, non-destructive real-time monitoring, and adapting to high-turbidity water environments.
Smart Images

Figure CN117456555B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of intelligent aquaculture and machine vision technology, and more specifically, to an underwater shrimp outline and organ feature recognition system. Background Technology
[0002] With increasing demands for high-quality shrimp farming and production, traditional testing methods rely primarily on manual experience to judge shrimp growth and health levels. Random sampling cannot provide scientific assessment. To effectively promote the high-standard and intelligent development of shrimp farming, Chinese invention patent CN113569971B discloses a method and system for classifying and detecting fish catches based on image recognition. This effectively improves the efficiency and accuracy of fish product identification and management, and enhances the accuracy and comprehensiveness of identification information for fish and other aquatic products. However, this patent primarily classifies and detects catches without segmenting images to extract key features, thus failing to effectively monitor the health and determine the growth cycle of the catches.
[0003] For example, Chinese invention patent CN106645585A discloses a display device for aquatic product varieties. This device automatically and correctly identifies and displays the varieties of aquatic products, significantly reducing labor intensity. However, this patent uses a conveyor belt system and can only be used on land; its sensors and detectors cannot operate in water. In aquaculture, random harvesting and testing can easily lead to contamination of the aquatic products and the aquaculture environment, thus affecting the quality and healthy growth of the aquatic products.
[0004] Using machine vision technology, a non-destructive technique, is more timely, convenient, and objectively accurate. However, simple morphological measurement is insufficient to provide comprehensive data support for shrimp health status, and there is a lack of visual research on shrimp organs.
[0005] In view of this, the present invention provides an underwater shrimp outline and organ feature recognition system, which applies machine vision technology to the recognition of shrimp body outline and also to the recognition of shrimp hepatopancreas. The measured length of shrimp body and organs provides a reliable basis for monitoring health status. Summary of the Invention
[0006] To overcome the problems in the prior art, this invention proposes an underwater shrimp outline and organ feature recognition system, which can automatically and correctly identify and characterize the physical characteristics and internal organs of aquatic shrimp, and display the detection target and its size, greatly reducing labor intensity.
[0007] According to one aspect of the present invention, an underwater shrimp outline and organ feature recognition system is provided, comprising the following steps:
[0008] A Res-Unet50 neural network is constructed, and based on the constructed Res-Unet50 neural network, the contours and two-dimensional coordinates of the organs of the underwater target shrimp image are obtained.
[0009] A semantic segmentation algorithm based on the Res-Unet50 neural network is used to connect the contours and two-dimensional coordinates of the organs of underwater target shrimp images into polygons using a polygon drawing function, thereby obtaining images of shrimp morphology and organ edges, and optimizing the parameters of the Res-Unet50 neural network.
[0010] The minimum bounding rectangle algorithm is used to fit the minimum bounding rectangle and the size is calibrated to obtain the size of the underwater target shrimp image.
[0011] As a preferred embodiment of the present invention, the logic for acquiring the underwater target shrimp image is as follows:
[0012] Choose appropriate hardware and software design schemes based on the underwater aquaculture environment;
[0013] Shrimp images were collected based on the internet and all shrimp species in underwater aquaculture environments;
[0014] Based on the image acquisition system and computer processing system, underwater shrimp images are labeled and a supervised learning dataset is established;
[0015] This method uses a fast training data augmentation library to perform random image augmentation on underwater shrimp images. It is suitable for water with high turbidity and can obtain underwater target shrimp images without the need for multiple or long-term sampling.
[0016] As a preferred embodiment of the present invention, the software and hardware design includes the following steps:
[0017] Hardware system design and layout will be based on the on-site investigation.
[0018] The monitoring software is capable of real-time control and clear capture of the underwater aquaculture environment. It adopts network video monitoring software with functions such as setting pan-tilt-zoom (PTZ) movement and lens zoom control. Network video monitoring software includes, but is not limited to, Hikvision IVMS-4200 network video monitoring software.
[0019] As a preferred embodiment of the present invention, the layout of hardware facilities corresponding to the underwater aquaculture environment is described.
[0020] The hardware facilities include, but are not limited to: a zoom lens underwater camera and a fill light;
[0021] The supplementary lighting uses an underwater light source array, which consists of a circular LED light source array with three infrared light sources and four white LED light sources arranged alternately.
[0022] As a preferred embodiment of the present invention, shrimp images are collected based on the Internet and all shrimp in the underwater aquaculture environment, and a supervised learning dataset is established according to a preset ratio of training set: test set.
[0023] Install and use the relevant hardware and software to acquire clear underwater shrimp images;
[0024] Label the training set images using annotation tools including but not limited to LabelMe, and export the JSON file.
[0025] As a preferred embodiment of the present invention, the fast training data augmentation library includes, but is not limited to, one or more combinations of the following applications: resolution downgrading, image blurring, horizontal flipping, vertical flipping, random masking, random brightness, random brightness contrast, and random gamma value.
[0026] As a preferred embodiment of the present invention, the construction logic of the Res-Unet50 neural network is as follows:
[0027] Construct a Res-Unet50 network, which includes multiple residual modules. Each residual module contains multiple convolutional layers and batch normalization layers. Embed all the residual modules into the Res-Unet50 backbone network.
[0028] The downsampling encoding part and the upsampling decoding part are constructed based on the UNet convolutional neural network;
[0029] The downsampling part of ResNet50 is replaced with the downsampling coding part of UNet in order to utilize the residual characteristics of ResNet50 to enhance the downsampling coding part of the entire network.
[0030] By using skip connections between the upsampling decoding part of UNet and the downsampling part of ResNet50, high-resolution information and contextual information are preserved.
[0031] Based on the task requirements, convolutional layers and activation functions were designed to obtain the required prediction results. The Res-Unet50 network was trained using labeled underwater shrimp image data, and a loss function was defined to supervise the learning process of the network.
[0032] After training, the network performance is evaluated, and hyperparameters are adjusted and the model is improved as needed. The trained Res-Unet50 network is then applied to underwater shrimp images to obtain the shrimp's outline and the coordinates of its organs.
[0033] As a preferred embodiment of the present invention, the main parameters of the Res-Unet50 network are epoch, batch size and learning rate, and the loss function is the BCE loss function.
[0034] Secondly, the present invention provides a method for recognizing the outline and visceral features of underwater shrimp, based on the aforementioned underwater shrimp outline and visceral feature recognition system, comprising the following steps:
[0035] Using the Laplacian operator to perform convolution, we obtain the two-dimensional coordinates of the segmented object;
[0036] Based on the two-dimensional coordinate points of the shrimp image, the points are connected into polygons using the polygon drawing function to obtain the shrimp morphology and organ edge images.
[0037] Then, the minimum outer rectangle algorithm is used to fit the minimum rectangle bounding box, and the size is calibrated.
[0038] Thirdly, the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0039] The processor executes the underwater shrimp outline and organ feature recognition system by calling the computer program stored in the memory.
[0040] The technical effects and advantages of the underwater shrimp outline and organ feature recognition system of the present invention are as follows:
[0041] This invention utilizes the Res-Unet network, which boasts higher precision and generalization capabilities, and employs the batch gradient descent method to achieve image segmentation and recognition of underwater shrimp in high-turbidity water environments, at the millimeter scale, and involving multiple targets. It also enables zero-contact, non-destructive real-time monitoring of the shrimp's health and growth cycle. Attached Figure Description
[0042] Figure 1 This is a flowchart of the shrimp outline and organ recognition system based on deep learning according to the present invention.
[0043] Figure 2 This is a diagram of the convolutional neural network structure of the present invention;
[0044] Figure 3 This is a structural diagram of the residual block in the convolutional neural network of this invention;
[0045] Figure 4 This is a graph showing the change in shrimp recognition loss rate as a function of the number of training iterations in this invention.
[0046] Figure 5 This is a diagram showing the results of shrimp outline size segmentation and recognition according to the present invention;
[0047] Figure 6 This is a diagram showing the results of the shrimp hepatointestinal gland segmentation and recognition according to the present invention.
[0048] Figure 7 This is a diagram showing the results of shrimp pancreas segmentation and recognition according to the present invention.
[0049] Figure 8 This is a layout diagram of the hardware and software design scheme for shrimp pancreas segmentation and recognition according to the present invention. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] Example 1
[0052] Please see Figure 1-7 As shown in this embodiment, an underwater shrimp outline and organ feature recognition system includes the following steps:
[0053] Choose appropriate hardware and software design schemes based on the underwater aquaculture environment;
[0054] Among them: the hardware facilities are used to collect underwater aquaculture environment data, and the hardware design scheme is a layout of hardware facilities corresponding to the underwater aquaculture environment. The hardware facilities include, but are not limited to: underwater camera with zoom lens and supplementary light.
[0055] The zoom lens underwater camera is the Barles zoom lens underwater camera, model SK2Z-P6X10. Factors considered included resolution, supplementary lighting control, waterproof rating, water pressure resistance, cable quality, and operating temperature and humidity. The zoom lens underwater camera boasts a resolution of 1920×1080P60FPS.
[0056] The supplemental lighting uses an underwater light source array, which consists of a circular LED light source array with three infrared light sources and four white LED light sources arranged alternately. This can effectively solve a variety of problems such as high turbidity of aquaculture water, light attenuation in water, very poor contrast, inconsistent lighting, blurriness, glossy artifacts, and color reduction.
[0057] The supplemental lighting features both automatic light sensor control and manual controller modes to adapt to different situations. It also boasts an IP68 waterproof rating, allowing for permanent underwater installation. The underwater light source array utilizes a circular LED array with three infrared light sources and four white LED light sources arranged alternately.
[0058] The monitoring software is capable of real-time control and clear capture of the underwater aquaculture environment. It uses network video monitoring software with functions such as setting omnidirectional pan-tilt movement and lens zoom control. The network video monitoring software is Hikvision IVMS-4200 network video monitoring software.
[0059] Shrimp images were collected based on the internet and all shrimp species in underwater aquaculture environments;
[0060] The specific data collection plan includes the following steps:
[0061] We installed the hardware system in the aquaculture experimental chamber and used the software system to acquire images of underwater shrimp from different angles, sizes and multiple targets.
[0062] Based on images of underwater shrimp downloaded from the internet.
[0063] The underwater shrimp images collected and those downloaded from the Internet are labeled using an image acquisition system and a computer processing system, and a supervised learning dataset is established.
[0064] Images of shrimp were collected from all shrimp species in the Internet and underwater aquaculture environment. A supervised learning dataset was established with the training set and test set in an 8:2 ratio.
[0065] Install and use relevant hardware and software to acquire clear underwater shrimp images; use annotation tools to label the shrimp outlines, pancreas, and hepatointestinal glands in the dataset images, and finally establish a supervised learning dataset.
[0066] Labeling tools include, but are not limited to, LabelMe, which labels training set images and exports JSON files.
[0067] This method uses a fast training data augmentation library to perform random image augmentation on underwater shrimp images. It is suitable for water with high turbidity and can obtain underwater target shrimp images without the need for multiple or long-term sampling.
[0068] It should be noted that actual optical conditions are very complex. In order to enable the underwater shrimp images in the dataset to have a certain recognition function, the underwater shrimp images are preprocessed to obtain underwater target shrimp images. Underwater target shrimp images not only ensure operating efficiency, but also enhance generalization ability and adaptability.
[0069] The Fast Training Data Augmentation Library includes, but is not limited to, one or more combinations of the following applications: resolution downgrading, image blurring, horizontal flipping, vertical flipping, random masking, random brightness, random brightness contrast, and random gamma values.
[0070] Compared to the traditional method of blindly increasing the size of the dataset, random image augmentation performs random transformations on images without changing the number of images, which not only ensures operational efficiency but also enhances generalization ability and adaptability.
[0071] A Res-Unet50 neural network was constructed to obtain the outline and two-dimensional coordinates of the organs of each shrimp in underwater target shrimp images.
[0072] It's important to note that the Res-Unet50 neural network is a new network combining the ResNet50 residual network and the UNet convolutional neural network. Its innovation lies in utilizing the residual advantages of the ResNet50 residual network in the downsampling part of the backbone UNet network, further improving the system's recognition performance. See the appendix for the detailed network structure. Figure 2 With appendix Figure 3 , including Figure 2 The right half represents the downsampling encoding section (i.e., the encoder), and the left half represents the upsampling decoding section (i.e., the decoder); Appendix Figure 3 This is the residual module for the ResNet residual network.
[0073] The construction logic of the Res-Unet50 neural network is as follows:
[0074] Construct a Res-Unet50 network, which includes multiple residual modules. Each residual module contains multiple convolutional layers and batch normalization layers. Embed all the residual modules into the Res-Unet50 backbone network.
[0075] The downsampling encoding part and the upsampling decoding part are constructed based on the UNet convolutional neural network;
[0076] The downsampling part of ResNet50 is replaced with the downsampling coding part of UNet in order to utilize the residual characteristics of ResNet50 to enhance the downsampling coding part of the entire network.
[0077] By using skip connections between the upsampling decoding part of UNet and the downsampling part of ResNet50, high-resolution information and contextual information are preserved.
[0078] Based on the task requirements, convolutional layers and activation functions were designed to obtain the required prediction results. The Res-Unet50 network was trained using labeled underwater shrimp image data, and a loss function was defined to supervise the learning process of the network.
[0079] After training, the network performance is evaluated, and hyperparameters are adjusted and the model is improved as needed. The trained Res-Unet50 network is then applied to underwater shrimp images to obtain the shrimp's outline and the coordinates of its organs.
[0080] The semantic segmentation algorithm based on the Res-Unet50 neural network uses a polygon drawing function to connect the contours and two-dimensional coordinates of the organs of the underwater target shrimp image into polygons, thus obtaining the shrimp morphology and organ edge images. The parameters of the Res-Unet50 network are optimized. To balance efficiency and effect, the learning rates of shrimp contours and organs are set differently, with a lower learning rate for organs.
[0081] Specifically, the Res-Unet50 network used in this invention optimizes the main parameter epoch from 20 to 40, allowing the network to learn data more times and improving performance. The batch size is optimized from 32 to 16, increasing the number of model weight updates and improving network convergence. The learning rate is reduced from 0.01 to 0.001 for more refined gradient descent, preventing shrimp larvae from being skipped due to their small organs, allowing the optimization algorithm to more carefully move towards the optimal parameters, thus improving network convergence. The loss function is the BCE loss function, typically used for binary classification tasks, such as shrimp outlines and organ edge images. See the attached graph for the change in shrimp recognition loss rate with the number of training iterations after optimization. Figure 4 This shows the change in shrimp recognition loss rate as the number of training iterations increases, such as... Figure 4 As shown, the vertical axis represents the loss rate, and the horizontal axis represents the number of training iterations. With increasing training iterations, the loss rate can be as low as 0.01. Typically, the loss rate should decrease as training progresses, indicating that the model's performance on the task is continuously improving.
[0082] It's important to note here that adjusting these parameters improves model performance and ensures better adaptation to the data and task. It's also necessary to prevent excessively large or small changes from causing training instability or performance degradation. Hyperparameter tuning is required to find the optimal parameter combination.
[0083] The minimum bounding rectangle algorithm is used to fit the minimum bounding rectangle and the size is calibrated to obtain the size of the underwater target shrimp image.
[0084] like Figures 5 to 7 These are the results of shrimp outline size segmentation and recognition, hepatointestinal gland segmentation and recognition, and pancreas segmentation and recognition. Figures 5 to 7 The specific attached images from left to right are as follows: the first image is the original image, the second image is the manually labeled shrimp image, the third image is the predicted shrimp image result, the fourth image is the predicted result with size annotation, and the fifth image is the original image with size annotation.
[0085] Example 2
[0086] Based on Example 1, this invention provides an implementation method for selecting suitable hardware and software design schemes for underwater aquaculture environments; such as... Figure 8 As shown, the camera can be fixed on a bracket. The bracket mechanism needs to support the simultaneous and individual lifting of the camera, light source, and feeding platform, and has sufficient outward extension distance to adapt to different sizes of aquaculture ponds, including square and circular ponds. When on-site technicians or managers need to monitor the current growth status of the shrimp, the bracket is lowered to simultaneously immerse the camera and feeding platform in the pond water, using both white and infrared light sources to acquire images. The acquired images are then preprocessed to remove noise such as shrimp feces and feed, followed by feature extraction and annotation of contour and organ length and width data. The contour and organ feature data of healthy shrimp are compared with the annotated data to determine the current plumpness and health status of the shrimp.
[0087] Example 3
[0088] Based on Example 2, another implementation method is provided, which involves selecting suitable hardware and software design schemes for underwater aquaculture environments; such as... Figure 8 As shown, the feeding platform and camera are fixed on a bracket whose components can be raised and lowered individually. The feeding platform is lowered and immersed in the aquaculture pond water, then raised again to sample and scoop out some shrimp. The camera and light array fixed on the bracket are used to acquire images of the scooped shrimp and identify their outlines and organ features. The feeding platform needs to have a rigid structure to prevent shaking during the raising and lowering phases, which would affect image acquisition and subsequent recognition accuracy. The feeding platform can also have side and bottom openings to return the sampled shrimp. After completing the entire shrimp outline and organ feature recognition process, the shrimp are returned to the feeding platform from the side or bottom. If the feeding platform does not have a side or bottom opening, it can be lowered into the aquaculture pond to return the identified shrimp.
[0089] Example 4
[0090] Please see Figure 2 As shown, parts not described in detail in this embodiment are described in Embodiment 1. A method for recognizing the outline and organ features of underwater shrimp is provided, including the following steps:
[0091] Convolution is performed using the Laplacian operator to obtain two-dimensional coordinate points;
[0092] Based on the two-dimensional coordinate points of the shrimp image, the points are connected into polygons using the polygon drawing function to obtain the shrimp morphology and organ edge images.
[0093] Then, the minimum outer rectangle algorithm is used to fit the minimum rectangle bounding box, and the size is calibrated.
[0094] Example 5
[0095] An electronic device includes: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0096] The processor executes the underwater shrimp outline and organ feature recognition system by calling the computer program stored in the memory.
[0097] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters and thresholds in the formulas are set by those skilled in the art according to the actual situation.
[0098] The above description is merely a specific embodiment 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.
[0099] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for recognizing the outline and organ features of underwater shrimp, characterized in that, Includes the following steps: A Res-Unet50 neural network is constructed, and the contours and two-dimensional coordinates of organs of underwater target shrimp images are obtained based on the Res-Unet50 neural network. A semantic segmentation algorithm based on the Res-Unet50 neural network is used to connect the contours and two-dimensional coordinates of the organs of underwater target shrimp images into polygons using a polygon drawing function, thereby obtaining images of shrimp morphology and organ edges, and optimizing the parameters of the Res-Unet50 neural network. The minimum bounding rectangle algorithm is used to fit the minimum bounding rectangle and the size is calibrated to obtain the size of the underwater target shrimp image; The construction logic of the Res-Unet50 neural network is as follows: A Res-Unet50 neural network is constructed, which includes multiple residual modules. Each residual module contains multiple convolutional layers and batch normalization layers. All residual modules are embedded into the backbone network of the Res-Unet50 neural network. The downsampling encoding part and the upsampling decoding part are constructed based on the UNet convolutional neural network; The downsampling part of ResNet50 is replaced with the downsampling coding part of UNet in order to utilize the residual characteristics of ResNet50 to enhance the downsampling coding part of the entire network. By using skip connections between the upsampling decoding part of UNet and the downsampling part of ResNet50, high-resolution information and contextual information are preserved. Based on the task requirements, convolutional layers and activation functions were designed to obtain the required prediction results, and the Res-Unet50 neural network was trained using labeled underwater shrimp image data. A loss function was defined to supervise the learning process of the network. After training, the network performance is evaluated, and hyperparameters are adjusted and the model is improved as needed. The trained Res-Unet50 neural network is then applied to underwater shrimp images to obtain the shrimp's outline and the coordinates of its organs. The main optimization parameters of the Res-Unet50 neural network are epoch, batch size, and learning rate, and the loss function is the BCE loss function.
2. The method for recognizing the outline and organ features of underwater shrimp according to claim 1, characterized in that, The logic for acquiring underwater target shrimp images: Choose appropriate hardware and software design schemes based on the underwater aquaculture environment; Shrimp images were collected based on the internet and all shrimp species in underwater aquaculture environments; Based on the image acquisition system and computer processing system, underwater shrimp images are labeled and a supervised learning dataset is established; This method uses a fast training data augmentation library to perform random image augmentation on underwater shrimp images, obtaining underwater target shrimp images without the need for multiple, long-term sampling.
3. The method for recognizing the outline and organ features of underwater shrimp according to claim 2, characterized in that, The software and hardware design process includes the following steps: Hardware system design and layout will be based on the on-site investigation. The monitoring software is capable of real-time control and clear capture of the underwater aquaculture environment. It adopts network video monitoring software with functions such as setting pan-tilt-zoom (PTZ) movement and lens zoom control. Network video monitoring software includes, but is not limited to, Hikvision IVMS-4200 network video monitoring software.
4. The method for recognizing the outline and organ features of underwater shrimp according to claim 3, characterized in that, The layout of hardware facilities corresponding to underwater aquaculture environments; The hardware facilities include, but are not limited to: a zoom lens underwater camera and a fill light; The supplementary lighting uses an underwater light source array, which consists of a circular LED light source array with three infrared light sources and four white LED light sources arranged alternately.
5. The method for recognizing the outline and organ features of underwater shrimp according to claim 2, characterized in that, Images of shrimp were collected from all shrimp species in the Internet and underwater aquaculture environments. A supervised learning dataset was then created by setting the training set and test set according to a preset ratio. Install and use the relevant hardware and software to acquire clear underwater shrimp images; Label the training set images using annotation tools including but not limited to LabelMe, and export the JSON file.
6. The method for recognizing the outline and organ features of underwater shrimp according to claim 2, characterized in that, The Fast Training Data Augmentation Library includes, but is not limited to, one or more combinations of the following applications: resolution downgrading, image blurring, horizontal flipping, vertical flipping, random masking, random brightness, random brightness contrast, and random gamma values.
Citation Information
Patent Citations
Aquatic product variety display device
CN106645585A
A method and system for classifying and detecting fish catches based on image recognition
CN113569971B
