Method and system for quantifying and classifying feeding intensity of litopenaeus vannamei
The pixel area of the shrimp head is analyzed through the feature extraction model and the Convnext model, which solves the problem of accurate shrimp feeding, realizes the quantification and classification of shrimp feeding intensity, reduces feed waste, and improves the accuracy and efficiency of breeding.
Patent Information
- Application Number
- CN202410694398.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
AI Technical Summary
Existing technology makes it difficult to accurately feed shrimps, resulting in feed waste and water quality problems. Moreover, the methods for monitoring the feeding behavior of shrimps are limited, especially the small size of shrimps and the high frequency of molting, which brings difficulties to the installation and maintenance of telemetry equipment.
A feature extraction model was used to detect and segment the shrimp head of Litopenaeus vannamei. The feeding intensity was quantified through the pixel area of the shrimp head in the feed area, and the Convnext model was used to classify the feeding intensity into three levels: strong, medium and low.
It achieves objective, effective quantification and classification of shrimp feeding intensity, provides technical support for precise feeding, reduces feed waste, and improves the accuracy and efficiency of farming.
Smart Images

Figure CN118674977A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of aquaculture, and in particular relates to a method and system for quantifying and classifying feeding intensity of Penaeus vannamei. Background Art
[0002] Litopenaeus vannamei is native to South America and is a high-quality protein with balanced nutrition. Litopenaeus vannamei has the characteristics of fast growth, strong stress resistance, wide adaptability, and high feed conversion rate. It is currently the largest shrimp farming variety in my country. The traditional feeding method usually determines the feeding amount based on experience and observation of the shrimp's feeding situation, and the feeding work is completed manually, which often ignores the influence of factors such as water temperature, water quality, and dissolved oxygen, resulting in inaccurate feeding and easy feed waste. Excessive feed will settle at the bottom of the pond, and will also produce harmful substances such as ammonia nitrogen, nitrite, and hydrogen sulfide, which will deteriorate water quality, breed bacteria, and cause shrimp diseases. Therefore, achieving accurate feeding of shrimp is an important way to reduce feed waste, control breeding costs, and ensure the healthy growth of shrimp.
[0003] At present, passive acoustics, computer vision and telemetry are the three main methods used to study feeding behavior in aquaculture. Passive acoustic monitoring (PAM) is a technology that uses passive acoustic sensors (such as hydrophones) to record and utilize sound. PAM can extract the motion sound signals of hungry shrimps. By analyzing the sound signals in the time domain and frequency domain, the characteristic parameters of the motion sound signals of shrimps of different sizes are determined, and the corresponding amplitude relationship between the characteristic parameters and the hunger degree of shrimps is established. Under laboratory conditions, the acoustic automatic feeder developed based on PAM has been able to replace the traditional solution based on feed trays, which can improve feeding efficiency and reduce feed waste. However, PAM is easily interfered by other external noises and cannot independently identify each detected individual. In addition, PAM is limited by high cost and difficulty in development, making it difficult to use in actual production. Telemetry technology is a method that uses radio waves or other signals to measure and record animal behavior and physiological data. At present, this technology has been applied to the study of decapods. However, the small size of shrimps and the high frequency of molting bring great difficulties to the installation and maintenance of telemetry equipment. Therefore, the telemetry technology of shrimp needs further development and improvement.
[0004] Computer vision is a non-invasive and economical monitoring method. At present, the research on fish feeding based on computer vision has been very extensive. It mainly obtains the feeding needs of fish by analyzing the feeding behavior of fish and detecting the bait in aquaculture water, and then makes intelligent feeding decisions. Zhou Chao et al. used support vector machine (SVM) to classify the intensity of the feeding process of swimming fish into four categories: strong, medium, general and weak, and realized the evaluation of feeding intensity. Near infrared can still achieve good imaging effect when natural light is insufficient. Chen Zhipeng et al. combined image texture and Lucas-Kanade optical flow method to quantify the feeding behavior intensity of fish schools, and used SVM training to detect the feeding state of fish. Hu et al. proposed a method of using deep learning technology to identify the size of water waves generated when fish feed, judge the hunger and satiation of fish, and also combined water quality parameters such as water temperature, dissolved oxygen, pH value to assist feeding decisions and improve the adaptability and accuracy of the system. However, there is currently little research on shrimp feeding based on computer vision. Summary of the invention
[0005] The present invention aims to solve the shortcomings of the prior art and proposes a method and system for quantifying and classifying the feeding intensity of Penaeus vannamei. A feature extraction model is used to detect and segment the shrimp head of Penaeus vannamei, and the feeding intensity of the shrimp is quantified according to the pixel area of the shrimp head in the feed area. Convnext is used to divide the feeding intensity of the shrimp in the image into three levels: strong feeding, medium feeding and low feeding.
[0006] To achieve the above object, the present invention provides the following scheme: a method for quantifying and classifying the feeding intensity of Penaeus vannamei, comprising the following steps:
[0007] S1. Obtain video data of Penaeus vannamei farming, and perform frame capture on the video data to obtain a processed image;
[0008] S2, performing feature extraction on the processed image to obtain a shrimp head mask image;
[0009] S3. quantifying and classifying feeding intensity based on the shrimp head mask image.
[0010] Further preferably, S2 includes:
[0011] S21, constructing a feature extraction model, and pre-training the feature extraction model to obtain a trained feature extraction model;
[0012] S22. Perform feature extraction on the processed image based on the trained feature extraction model to obtain the shrimp head mask image.
[0013] Further preferably, the feature extraction model comprises: an input end, a backbone network, a neck, a detection head and a segmentation branch;
[0014] The input end is used to perform a data enhancement operation on the processed image to obtain an enhanced image;
[0015] The backbone network is used to extract target features of the enhanced image;
[0016] The neck adopts a feature pyramid network and a path aggregation network design to fuse the target features of different scales;
[0017] The detection head is used to classify and regress the fused target features and output the position of the target;
[0018] The segmentation branch is used to perform pixel-level segmentation on the target.
[0019] Further preferably, S3 includes:
[0020] S31, calculating the pixel area of the shrimp head mask image, and quantifying the feeding intensity based on the pixel area to obtain a quantification result;
[0021] S32, constructing a classification model, training the classification model, and performing classification based on the trained classification model and the shrimp head mask image to obtain a classification result.
[0022] The present invention also provides a system for quantifying and classifying the feeding intensity of Penaeus vannamei, the system being used to implement the above method, comprising: a data acquisition module, a feature extraction module and a quantification classification module;
[0023] The data acquisition module is used to acquire video data of Penaeus vannamei farming, and perform frame capture on the video data to obtain a processed image;
[0024] The feature extraction module is connected to the data acquisition module and is used to extract features from the processed image to obtain a shrimp head mask image;
[0025] The quantification and classification module is connected to the feature extraction module and is used to quantify and classify feeding intensity based on the shrimp head mask image.
[0026] Further preferably, the feature extraction module comprises: a model building unit and a feature extraction unit;
[0027] The model construction unit is used to construct a feature extraction model, pre-train the feature extraction model, and obtain a trained feature extraction model;
[0028] The feature extraction unit is connected to the model construction unit and is used to perform feature extraction on the processed image based on the trained feature extraction model to obtain the shrimp head mask image.
[0029] Further preferably, the feature extraction model comprises: an input end, a backbone network, a neck, a detection head and a segmentation branch;
[0030] The input end is used to perform a data enhancement operation on the processed image to obtain an enhanced image;
[0031] The backbone network is used to extract target features of the enhanced image;
[0032] The neck adopts a feature pyramid network and a path aggregation network design to fuse the target features of different scales;
[0033] The detection head is used to classify and regress the fused target features and output the position of the target;
[0034] The segmentation branch is used to perform pixel-level segmentation on the target.
[0035] Further preferably, the quantization classification module comprises: a quantization unit and a classification unit;
[0036] The quantization unit is used to calculate the pixel area of the shrimp head mask image, and quantify the feeding intensity based on the pixel area to obtain a quantification result;
[0037] The classification unit is used to construct a classification model, train the classification model, and perform classification based on the trained classification model and the shrimp head mask image to obtain a classification result.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The method for quantifying the feeding intensity of shrimp proposed in the present invention aims to overcome subjectivity and reduce feed waste, so as to provide technical support for the precise feeding of shrimp. Under different feeding intensities, the pixel area of the shrimp head in the feed area varies significantly. Therefore, the method proposed in the present invention can objectively and effectively quantify the feeding intensity of shrimp and classify the feeding intensity of shrimp, providing a new idea and technical support for the precise feeding of shrimp. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 This is a schematic diagram of the process of quantifying and classifying the feeding intensity of Penaeus vannamei according to an embodiment of the present invention;
[0042] Figure 2 This is a schematic diagram of the structure of a shrimp farming system according to an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of four states of shrimp in the pre-training data set of an embodiment of the present invention;
[0044] Figure 4 Schematic diagram of the original image, shrimp head segmentation visualization and shrimp head mask image according to an embodiment of the present invention;
[0045] Figure 4 (a) is the original image; Figure 4 (b) is the visualization image of shrimp head segmentation; Figure 4 (c) is the shrimp head mask image;
[0046] Figure 5 This is a schematic diagram of the shrimp feeding intensity classification process according to an embodiment of the present invention;
[0047] Figure 6 This is a visualization diagram of shrimp head segmentation of the feature extraction model under four feeding states in an embodiment of the present invention;
[0048] Figure 7 Schematic diagram of the pixel area of shrimp heads under four feeding states in an embodiment of the present invention;
[0049] Figure 8 This is a schematic diagram of the change in the pixel area of the shrimp head in the feed area during the entire feeding process of an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] Embodiment 1:
[0053] like Figure 1 As shown, this embodiment provides a method for quantifying and classifying the feeding intensity of Penaeus vannamei, comprising the following steps:
[0054] S1. Obtain video data of Penaeus vannamei farming, and perform frame capture on the video data to obtain a processed image.
[0055] In this embodiment, the shrimp farming experiment was conducted at the Langya Base of the Yellow Sea Fisheries Research Institute of the Chinese Academy of Fishery Sciences in the West Coast New Area of Qingdao City, Shandong Province. Figure 2 As shown in the figure, the experimental pool is a round white barrel with a diameter of 1.2m and a height of 0.6m. The effective aquaculture water volume is 0.4m 3 , a turnover box filter (60 cm long, 40 cm wide, 35 cm high) was used to filter suspended matter in the water. An underwater camera was used to regularly capture video information of shrimp feeding. In order to eliminate the influence of stocking density on the results, two stocking densities were set: low density, 50 shrimps, 4 kg / m 3 and high density, 120 tails, 10kg / m 3 Three parallel experiments were set up for each culture density. The culture water was natural seawater, which was used after sedimentation and filtration.
[0056] During the breeding period, an aerator was used to continuously aerate the shrimp to meet the dissolved oxygen requirement of more than 5.0 mg / L. During the experiment, the water temperature was 24.5±1℃, and 10% of the water was changed every day. When changing the water, the residual bait and feces at the bottom of the pond were sucked out, and the filter cotton in the filtration system was replaced every day. The feeding frequency of shrimp was set to 3 times a day. -1 When the feed coefficient is the lowest, the protein efficiency is the highest. Use an automatic feeder to feed once at 8:00, 13:00, and 18:00 every day. The amount of feed should be adjusted according to the size and feeding status of the shrimp, so that all the feed can be eaten within 30 minutes.
[0057] S2. Perform feature extraction on the processed image to obtain a shrimp head mask image.
[0058] In this embodiment, S2 includes:
[0059] S21. Construct a feature extraction model, pre-train the feature extraction model, and obtain a trained feature extraction model.
[0060] In this embodiment, the feature extraction model uses an improved Yolov8 model for feature extraction. Yolov8 is a real-time multi-task image processing model that provides models of different scales and can perform tasks such as object detection, instance segmentation, and image classification at different resolutions and scenes. A segmentation branch model is added on the basis of Yolov8, which can perform pixel-level segmentation on the detected objects and output different results according to requirements, such as bounding boxes, masks (masks are binary images that use 0 and 1 to represent the foreground and background in the image), contours, category labels, etc., to facilitate subsequent image analysis and processing.
[0061] Specifically, the feature extraction model includes: input end, backbone network, neck, detection head and segmentation branch. The input end is used to perform data enhancement operations such as scaling and color transformation on the processed image to obtain an enhanced image to meet the training needs; the backbone network is used to extract the target features of the enhanced image; the neck adopts the feature pyramid network and path aggregation network design, and removes the upsampling convolution operation in Yolov5 to fuse target features of different scales; the detection head is used to classify and regress the fused target features and output the location of the target; the segmentation branch is used to perform pixel-level segmentation of the target. The segmentation branch uses technologies such as dilated convolution, conditional random field, and edge detection to further improve the accuracy and robustness of segmentation.
[0062] Pre-training methods include:
[0063] Collect pre-training datasets, such as Figure 3 As shown, the pre-training dataset is labeled, and the feature extraction model is trained based on the labeled pre-training dataset.
[0064] In this embodiment, 15 videos were collected, the video frame rate was 30 frames, and the resolution was 1920×1080. To evaluate the effectiveness of the feature extraction model. 3 and 10kg / m 3 Under two stocking densities, from a video containing four feeding states (strong feeding, medium feeding, weak feeding and non-feeding), one image was captured every 180 frames, and a total of 600 images were obtained as the pre-training data set. Among them, the feeding state is classified by the number of shrimps near the feed. It not only ensures the diversity and quality of the data set, but also covers the main scenes and changes in the video. Too few or too many frames captured will affect the quality of the pre-training data set. Since the overall morphology of the shrimp is easily affected by occlusion, the head area of the shrimp has more feature information, such as eyes and mouthparts, which plays an important role in the feature extraction and recognition of the image processing model. Therefore, only the head area of the shrimp in the image is manually annotated, and the bounding box of the shrimp head is drawn in the image using the Labelme tool, and the coordinates and size of the bounding box are saved as a Json format file. The annotated pre-training data set is divided into a training set, a validation set, and a test set in a ratio of 8:1:1.
[0065] Among them, strong feeding means that after a period of time, the shrimp can identify the location of the feed by sight or smell, and quickly move to the feeding area to feed. When there are too many shrimps in the feeding area, the shrimps will fight for the feed. To avoid fighting, the shrimps will choose to feed in batches. Therefore, when more than 6 shrimps gather in the feeding area to feed, it is judged as strong feeding.
[0066] Medium feeding: As the shrimp continue to feed, their feeding desire gradually decreases, and some shrimps become full and begin to leave the feeding area. The number of shrimps in the feeding area also decreases to 4-6 during the strong feeding stage, and their feeding activity also slows down.
[0067] Weak feeding: When the shrimp feeding is about to end, there are less than 4 shrimps or no shrimps feeding in the feeding area, and the number of feed particles in the feeding area does not change significantly.
[0068] Non-feeding: During the non-feeding stage, the shrimp are scattered in the water and are in a non-feeding state, showing no obvious feeding behavior.
[0069] S22. Perform feature extraction on the processed image based on the trained feature extraction model to obtain a shrimp head mask image.
[0070] A 3-minute video clip was selected from each of the four feeding states (strong feeding, medium feeding, weak feeding, and non-feeding). The video length was selected to be 3 minutes to ensure the integrity and consistency of the data. The shrimp head was segmented using the trained feature extraction model to export a video containing only the mask. For the above video, a mask image was captured every 10 frames. The purpose of capturing a mask image every 10 frames is to accurately reflect the changes in the mask pixel area in the video and reduce the amount of data and calculation time while ensuring data integrity.
[0071] S3. Quantification and classification of feeding intensity based on shrimp head mask image.
[0072] In this embodiment, S3 includes:
[0073] S31, calculating the pixel area of the shrimp head mask image, and quantifying the feeding intensity based on the pixel area to obtain a quantified result.
[0074] This example uses the shrimp head area as an indicator to quantify the feeding intensity of the shrimp.
[0075] S32, constructing a classification model, training the classification model, and performing classification based on the trained classification model and the shrimp head mask image to obtain a classification result.
[0076] In this embodiment, the classification model adopts Convnext, which is an advanced deep learning model based on convolutional neural networks. It can adaptively adjust the shape and position of the convolution kernel to improve the flexibility and efficiency of feature extraction. It is also a very powerful and general image classification model that can perform well in a variety of scenarios and fields. As a classification model, Convnext extracts the mask information of the shrimp head through deep convolution and point convolution, and then maps the mask information of the shrimp head into the characteristics of feeding intensity through the inverse bottleneck layer. Finally, through the fully connected layer and the Softmax layer, the features are automatically classified into three levels: strong, medium, and weak according to needs. Figure 5 shown.
[0077] The classification model training dataset includes two different video sources: shrimp head mask and shrimp head segmentation visualization. The shrimp head mask is to segment the shrimp head through the feature extraction model, and obtain a video containing only the shrimp head mask. The shrimp head segmentation visualization is to segment the shrimp head and then superimpose it on the original video to obtain a video with the visualization effect of the shrimp head segmentation. The original image and the shrimp head segmentation visualization and shrimp head mask images under three feeding intensities are shown in Figure 2. Figure 4 As shown. One image was captured every 100 frames from each of the two video sources to ensure image diversity and representativeness. 480 images were captured from each video source (240 images each at low and high stocking densities), including samples of three feeding intensities: strong feeding, medium feeding, and weak feeding, as image training data sets for the classification model. Among them, in each video source, there are 160 images of weak feeding, 160 images of medium feeding, and 160 images of strong feeding of shrimp.
[0078] When the shrimps have a strong desire to eat, they will gather in the feeding area for intense feeding activities. At this time, the area of the shrimp heads in the feeding area is large; the number of shrimps in the feeding area is large; on the contrary, when the shrimps have a weak desire to eat, the shrimps will end their feeding activities and leave the feeding area. At this time, the area of the shrimp heads in the feeding area will also become smaller, and the number of shrimps in the feeding area will also decrease accordingly. Therefore, the pixel area of the shrimp heads in the feeding area and the number of shrimps in the feeding area can be used to quantify the feeding intensity of shrimps. Under different feeding intensities, the pixel area of the shrimp heads in the feeding area and the number of shrimps in the feeding area have obvious changes. It is effective to evaluate the feeding intensity of shrimps based on the pixel area of the shrimp heads and the number of shrimps in the feeding area.
[0079] The Convnext model was trained on the datasets of two video sources to compare their effects on the classification of shrimp feeding intensity. The classification results show that the shrimp head mask dataset is significantly better than the shrimp head segmentation visualization dataset in terms of both accuracy and loss function. This may be because there is background interference in the shrimp head segmentation visualization dataset, which causes the model to be unable to recognize the shrimp head, while the background in the shrimp head mask dataset is pure black and there is no background interference. Therefore, the shrimp head mask dataset is better than the shrimp head segmentation visualization dataset in terms of accuracy and loss function. Since the dataset is only divided by feeding intensity, not by breeding density. Therefore, breeding density has no effect on the classification of shrimp feeding intensity.
[0080] Embodiment 2:
[0081] This embodiment will provide a detailed description of the steps and effects of the method proposed in the present invention in combination with experimental data.
[0082] The experimental platform uses the Ubuntu 20.02 operating system, the CPU processor is Intel(R) Xeon(R) Silver4110, the GPU is 4 GeForce A4000, and the video memory is 4×16GB. The model training framework is Pytorch 1.11.0, and the specific training hyperparameter settings are shown in Table 1.
[0083] Table 1
[0084]
[0085] In order to evaluate the segmentation results of the feature extraction model, a large number of experiments were conducted on the shrimp feeding behavior dataset. The feature extraction model was compared with the U2net model and the Yolov5-segment model, and their performance on different evaluation indicators was analyzed.
[0086] The evaluation index uses four commonly used evaluation indicators to verify the effect of the model, namely precision, recall, F1-score and mAP50. Precision: The proportion of correctly predicted positives to all predicted positives, which reflects the accuracy of the model, that is, the ability of the model to correctly identify the target. The higher the precision, the less likely the model is to misjudge negative samples as positive samples, that is, the number of false positives is reduced. Recall: The proportion of correctly predicted positives to all actual positives, which reflects the completeness of the model, that is, the ability of the model to cover all targets. The higher the recall, the less likely the model is to miss positive samples, that is, the number of missed detections is reduced. F1-score: The harmonic mean of precision and recall, which reflects the comprehensive performance of the model, that is, the ability of the model to balance accuracy and completeness. The higher the F1-score, the more the model can simultaneously ensure high precision and recall, that is, the number of false detections and missed detections is reduced. mAP50: The average precision (AP) of different categories of objects when the intersection over union (IoU) threshold is 0.5. IoU refers to the overlap between the predicted bounding box and the true bounding box, which is obtained by dividing the intersection area of the two by the union area. mAP50 reflects the generalization performance of the model, that is, the ability of the model to adapt to different categories and different confidence levels. The higher the mAP50, the more the model can maintain a higher accuracy under different categories and different confidence levels, that is, it reduces the category bias and confidence bias. They are defined as follows:
[0087]
[0088] Wherein, TP (True Positives): true positive examples, predicted as positive examples, are actually positive examples; FP (False Positives): false positive examples, predicted as positive examples, are actually negative examples; FN (False Negatives): false negative examples, predicted as negative examples, are actually positive examples.
[0089] The experimental results show that the evaluation results of the three models on the four indicators are shown in Table 2. It can be seen that the feature extraction model achieved the best results in Precision, Recall and F1-score, which are 94.6%, 87.0% and 89.5% respectively. The Yolov5-segment model achieved a result of 92.4% on mAP50, slightly higher than the 92.1% of the feature extraction model, but lower than the feature extraction model on the other three indicators, which are 94.0%, 85.8% and 88.0% respectively. The U2net model is significantly lower than the other two models in all indicators, especially in mAP50, which is only 81.9%, much lower than the 92.1% and 92.4% of the feature extraction model and Yolov5-segment model. The effect of feature extraction on the segmentation of shrimp heads under four feeding intensities is shown in the figure. Figure 6 As shown in the figure, it can be seen that the feature extraction model can better preserve the details and contours of the shrimp head. In summary, the feature extraction model shows excellent image segmentation performance on the shrimp feeding dataset. Compared with the Yolov5-segment model and the U2net model, it has higher Precision, Recall and F1-score, and mAP50 comparable to the Yolov5-segment model.
[0090] Table 2
[0091]
[0092] This embodiment uses the non-feeding stage as a reference, and uses the video analysis method to analyze and quantify the feeding intensity of the shrimp. The experimental results show that the difference in the pixel area of the shrimp head mask in the feed area is significant under different feeding intensities. The overall pixel area of the shrimp heads in the feed area roughly presents: strong feeding > medium feeding > weak feeding = non-feeding. Under low-density farming, during the strong feeding stage, the average pixel area of the shrimp heads in the feed area is maintained at more than 100,000; in the medium feeding stage, the average pixel area of the shrimp heads in the feed area is maintained between 50,000 and 100,000; in the weak feeding and non-feeding stages, the average pixel area of the shrimp heads in the feed area is generally below 50,000. Under high-density farming, during the strong feeding stage, the average pixel area of the shrimp heads is maintained at more than 140,000; in the medium feeding stage, the average pixel area of the shrimp heads is maintained between 100,000 and 140,000; in the weak feeding and non-feeding stages, the average pixel area of the shrimp heads is generally below 100,000. The pixel areas of the shrimp heads in the feed area under different feeding intensities are as follows: Figure 7 shown.
[0093] Under different feeding intensities, the number of shrimp in the high-density feed area changes more frequently than that in low-density feed areas. The reason is that in order to reduce the chance of physical contact and avoid mutual attacks, the vannamei shrimp will frequently feed in batches, resulting in frequent changes in the number of shrimp. Due to the batch feeding of shrimp, there is no significant difference between the number of shrimp feeding in the feed area and the breeding density under the three feeding intensities. Even in the strong feeding state, the number of shrimp feeding in the feed area is usually less than 15, so the overlapping phenomenon of shrimp heads has little effect on the authenticity of the pixel area of the shrimp heads.
[0094] The number of shrimps in the feeding area can directly reflect their feeding intensity. The experimental results show that under different feeding intensities, the number of shrimps in the feeding area shows significant differences. Under high and low stocking densities, when the shrimps are in the strong feeding stage, the number of shrimps in the feeding area is generally more than 6; in the medium feeding stage, the number is usually between 4 and 6; in the weak feeding or non-feeding stage, the number of shrimps in the feeding area is usually less than 4. The number of shrimps in the feeding areas with different feeding intensities is as follows: Figure 8 shown.
[0095] The feeding behavior of shrimps at different time periods was observed and quantified. In order to stimulate the feeding desire of shrimps, feed was fed at about 5000 frames. By measuring the pixel area of the shrimp head in the video frame, the changes in the feeding intensity of shrimps can be obtained, such as Figure 8 As shown in the figure, the pixel area of the shrimp head shows the following characteristics as the number of video frames changes: before 5000 frames, the pixel area of the shrimp head remains below 50,000; from 5000 to 12,500 frames, the pixel area of the shrimp head shows an increasing trend, gradually increasing from about 50,000 to about 100,000; from 12,500 to 32,500 frames, the pixel area of the shrimp head remains above 100,000; starting from 32,500 frames, the pixel area of the shrimp head is on a downward trend, and drops below 50,000 after 40,000 frames.
[0096] The Convnext model was trained on these two datasets and the following results were obtained: After 20 iterations, the Convnext model showed high classification accuracy on both datasets, reaching 97.6% and 98.8% respectively, and the loss function values were also very low, 0.107 and 0.085 respectively, as shown in Table 3. This shows that the Convnext model can adapt well to different image datasets and has strong generalization ability for the classification of shrimp feeding intensity.
[0097] Table 3
[0098]
[0099] Embodiment three:
[0100] This embodiment provides a system for quantifying and classifying feeding intensity of Penaeus vannamei, including: a data acquisition module, a feature extraction module and a quantification classification module.
[0101] The data acquisition module is used to acquire video data of Penaeus vannamei farming, and to perform frame capture on the video data to obtain processed images.
[0102] The feature extraction module is connected to the data acquisition module and is used to extract features from the processed image to obtain a shrimp head mask image.
[0103] The feature extraction module includes: a model construction unit and a feature extraction unit; the model construction unit is used to construct a feature extraction model, pre-train the feature extraction model, and obtain a trained feature extraction model; the feature extraction unit is connected to the model construction unit, and is used to extract features from the processed image based on the trained feature extraction model to obtain a shrimp head mask image.
[0104] Among them, the feature extraction model includes: an input end, a backbone network, a neck, a detection head and a segmentation branch; the input end is used to perform data enhancement operations on the processed image to obtain an enhanced image; the backbone network is used to extract the target features of the enhanced image; the neck adopts a feature pyramid network and a path aggregation network design to fuse target features of different scales; the detection head is used to classify and regress the fused target features and output the target position; the segmentation branch is used to perform pixel-level segmentation of the target.
[0105] The quantification and classification module is connected to the feature extraction module and is used to quantify and classify the feeding intensity based on the shrimp head mask image. The quantification and classification module includes: a quantification unit and a classification unit; the quantification unit is used to calculate the pixel area of the shrimp head mask image and quantify the feeding intensity based on the pixel area to obtain a quantification result; the classification unit is used to build a classification model, train the classification model, and classify based on the trained classification model and the shrimp head mask image to obtain a classification result.
[0106] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A method for quantifying and classifying the feeding intensity of Penaeus vannamei, characterized in that: The following steps are involved: S1. Obtain video data of Penaeus vannamei farming, and perform frame capture on the video data to obtain a processed image; S2, performing feature extraction on the processed image to obtain a shrimp head mask image; S3. quantifying and classifying feeding intensity based on the shrimp head mask image.
2. The method for quantifying and classifying the feeding intensity of Penaeus vannamei according to claim 1, wherein S2 include: S21, constructing a feature extraction model, and pre-training the feature extraction model to obtain a trained feature extraction model; S22. Perform feature extraction on the processed image based on the trained feature extraction model to obtain the shrimp head mask image.
3. The method for quantifying and classifying the feeding intensity of Penaeus vannamei according to claim 2, characterized in that: The feature extraction model includes: an input end, a backbone network, a neck, a detection head and a segmentation branch; The input end is used to perform a data enhancement operation on the processed image to obtain an enhanced image; The backbone network is used to extract target features of the enhanced image; The neck adopts a feature pyramid network and a path aggregation network design to fuse the target features of different scales; The detection head is used to classify and regress the fused target features and output the position of the target; The segmentation branch is used to perform pixel-level segmentation on the target.
4. The method for quantifying and classifying the feeding intensity of Penaeus vannamei according to claim 1, wherein S3 include: S31, calculating the pixel area of the shrimp head mask image, and quantifying the feeding intensity based on the pixel area to obtain a quantification result; S32, constructing a classification model, training the classification model, and performing classification based on the trained classification model and the shrimp head mask image to obtain a classification result.
5. A system for quantifying and classifying feeding intensity of Penaeus vannamei, the system being used to implement the method according to any one of claims 1 to 4, characterized in that: include: Data acquisition module, feature extraction module and quantitative classification module; The data acquisition module is used to acquire video data of Penaeus vannamei farming, and perform frame capture on the video data to obtain a processed image; The feature extraction module is connected to the data acquisition module and is used to extract features from the processed image to obtain a shrimp head mask image; The quantification and classification module is connected to the feature extraction module and is used to quantify and classify feeding intensity based on the shrimp head mask image.
6. A system for quantifying and classifying feeding intensity of Penaeus vannamei according to claim 5, characterized in that: The feature extraction module includes: a model building unit and a feature extraction unit; The model construction unit is used to construct a feature extraction model, pre-train the feature extraction model, and obtain a trained feature extraction model; The feature extraction unit is connected to the model construction unit and is used to perform feature extraction on the processed image based on the trained feature extraction model to obtain the shrimp head mask image.
7. A system for quantifying and classifying feeding intensity of Penaeus vannamei according to claim 6, characterized in that: The feature extraction model includes: an input end, a backbone network, a neck, a detection head and a segmentation branch; The input end is used to perform a data enhancement operation on the processed image to obtain an enhanced image; The backbone network is used to extract target features of the enhanced image; The neck adopts a feature pyramid network and a path aggregation network design to fuse the target features of different scales; The detection head is used to classify and regress the fused target features and output the position of the target; The segmentation branch is used to perform pixel-level segmentation on the target.
8. A system for quantifying and classifying feeding intensity of Penaeus vannamei according to claim 5, characterized in that: The quantization and classification module includes: a quantization unit and a classification unit; The quantization unit is used to calculate the pixel area of the shrimp head mask image, and quantify the feeding intensity based on the pixel area to obtain a quantification result; The classification unit is used to construct a classification model, train the classification model, and perform classification based on the trained classification model and the shrimp head mask image to obtain a classification result.
Citation Information
Patent Citations
Underwater fish group activity intensity identification method and device
CN114463675A
ST-GCN-based fish school ingestion intensity prediction method
CN115690570A
Fish school feeding intensity identification method and device, electronic equipment and bait casting machine
CN116052064A
Fish disease early warning method and system
CN117611380A
Shrimp length measuring method and system based on machine vision
CN117934583A
