A method, device and system for mixed fish behavior detection based on YOLOv3-Lite

Through the fish behavior detection method based on YOLOv3-Lite, image enhancement and improved network structure are used to solve the problems of subjectivity and insufficient robustness of traditional detection methods, achieve fast and low-cost fish behavior detection, and improve the detection efficiency. accuracy and robustness.

CN112634202BActive Publication Date: 2024-09-24ZHEJIANG ACADEMY OF AGRICULTURE SCIENCES
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202011400100.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-09-24
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

Traditional fish behavior detection methods rely on manual observation, which is highly subjective and has a high possibility of misjudgment. In addition, computer vision methods have single feature extraction, small sample sizes, and weak robustness, resulting in inaccurate detection, which limits their widespread promotion.

Method used

A method based on YOLOv3-Lite is used to preprocess the fish images through image enhancement, noise reduction, augmentation and other technologies, and establish an improved fish behavior detection model, using the improved backbone network, pooling network and GIoU loss function. Improve detection accuracy and robustness.

Benefits of technology

It achieves fast and low-cost fish behavior detection, improves detection accuracy and robustness, reduces the number of parameters, optimizes model storage space, and realizes online real-time dynamic detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112634202B
    Figure CN112634202B
Patent Text Reader

Abstract

The present invention provides a method, device and system for mixed fish behavior detection based on YOLOv3-Lite, the method comprising: respectively acquiring images of fish schools in different breeding environments; preprocessing the images of fish schools to obtain a first image of fish schools; inputting the first image of fish schools into a target network model to obtain a fish behavior detection result, wherein the target network model is obtained by inputting the first image of fish schools into an initial network model for training. The present invention uses image enhancement, noise reduction, augmentation and other technologies to preprocess the acquired images to improve the imaging quality and enrich the training set information; the above-mentioned image data set is trained based on an improved YOLOv3-Lite network to establish a fish behavior detection model, thereby realizing a method for fast and low-cost mixed fish behavior detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer image processing, and in particular to a method, device and system for detecting mixed fish school behavior based on YOLOv3-Lite. Background Art

[0002] At present, my country's aquaculture area and fishery output value are both ranked first in the world. Fish farming economy occupies an increasingly important position in my country's agricultural economy. In fish farming, fish health needs to be monitored. The behavior of fish schools can reflect the fish's preference for the breeding environment, thereby reflecting whether the breeding water is suitable or not.

[0003] Traditionally, the detection of fish school behavior is mainly carried out through continuous observation at the breeding site by humans, and judgments are made based on the swimming status of fish based on experience, which requires a high level of knowledge from the observers. The process is time-consuming and labor-intensive, the observation results are highly subjective, and there is a possibility of misjudgment due to human factors.

[0004] Even with the development of computer vision, machine vision can achieve quick reading judgment in fish school behavior detection. However, since this type of method extracts a single feature and a small sample size, it not only has weak robustness but also has the problem of inaccurate detection. Therefore, it cannot be widely promoted and has certain limitations. Summary of the invention

[0005] The present invention provides a method, device and system for mixed-breeding fish behavior detection based on YOLOv3-Lite. The acquired images are preprocessed by image enhancement, noise reduction, augmentation and other technologies to improve imaging quality and enrich training set information. The above image data set is trained based on an improved YOLOv3-Lite network to establish a fish behavior detection model, thereby realizing a method for fast and low-cost mixed-breeding fish behavior detection.

[0006] In a first aspect, an embodiment of the present invention provides a method for detecting mixed fish behavior based on YOLOv3-Lite, comprising:

[0007] Obtain images of fish schools in different breeding environments;

[0008] Preprocessing the fish school image to obtain a first fish school image;

[0009] The first fish school image is input into a target network model to obtain a fish school behavior detection result, wherein the target network model is obtained by inputting the first fish school image into an initial network model for training.

[0010] In a possible design, the steps of respectively acquiring images of fish schools in different breeding environments include:

[0011] Different breeding environments can be obtained by setting the hunger level and oxygen content conditions;

[0012] A variety of fish are placed in the breeding environment for breeding, and corresponding fish school images under different breeding environments are obtained.

[0013] In a possible design, preprocessing the fish school image to obtain a first fish school image includes:

[0014] The first fish school image is obtained by performing data enhancement, data noise reduction and data augmentation processing on the fish school image.

[0015] In a possible design, before inputting the first fish school image into the target network model to obtain the fish school behavior detection result, the method further includes:

[0016] Constructing the initial network model, wherein the initial network model includes an improved backbone network structure, an improved pooling network structure and an improved loss function, wherein the improved backbone network structure is used to expand the channel dimension of the first fish school image input, and obtain a reduced-dimensional feature image after deep convolution;

[0017] The improved pooling network structure is used to convert the reduced-dimensionality feature images of different dimensions into feature images of the same dimension, and can also be used to fuse the reduced-dimensionality feature images of different scales to obtain a fused feature image;

[0018] The improved loss function is used to combine the loss function of GIoU to calculate the loss function of the fused feature image. If the loss function of the fused feature image is greater than a preset improved function threshold, the fish school behavior detection result is obtained.

[0019] In a possible design, inputting the first fish school image into a target network model to obtain a fish school behavior detection result includes:

[0020] The target network model obtains the fish school behavior detection result by using three indicators: precision, recall rate and engagement ratio.

[0021] In a possible design, after inputting the first fish school image into the target network model to obtain the fish school behavior detection result, the method further includes:

[0022] The robustness of the target network type is verified by analyzing the accuracy of the fish school behavior detection in the feeding change environment with different lighting and visibility.

[0023] In a second aspect, an embodiment of the present invention provides a device for mixed fish school behavior detection based on YOLOv3-Lite, which is applied to the method for mixed fish school behavior detection described in any one of the first aspects, and the device includes:

[0024] Water tank, array light source, oxygen sensor, data camera, biofilter, solid waste filter, oxygen generator and terminal;

[0025] The planar array light source is disposed at a preset distance outside the water tank and provides illumination for the water tank;

[0026] The data camera and the oxygen sensor are both arranged in the water tank, the data camera is used to obtain the image of the school of fish, and the oxygen sensor is used to detect the oxygen content in the water tank;

[0027] The oxygen concentrator is arranged outside the water tank and connected to the oxygen sensor, and is used to input oxygen into the water tank according to the oxygen content;

[0028] The terminal is arranged outside the water tank and connected to the data camera, and is used to process the input fish school images to obtain fish school behavior detection results;

[0029] The biological filter and the solid waste filter are connected and arranged outside the water tank to filter food residues and fish feces in the water.

[0030] In a possible design, the area array light source is composed of 120 LED point light sources arranged in a circle;

[0031] The data cameras are set as two Go-pro Hero 7black underwater digital sports cameras.

[0032] In a third aspect, an embodiment of the present invention provides a system for mixed fish behavior detection based on YOLOv3-Lite, comprising a memory and a processor, wherein the memory stores executable instructions of the processor; wherein the processor is configured to execute the method for mixed fish behavior detection described in any one of the first aspects by executing the executable instructions.

[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for detecting the behavior of a mixed-breeding fish school as described in any one of the first aspects.

[0034] The present invention provides a method, device and system for mixed fish behavior detection based on YOLOv3-Lite, the method comprising: respectively acquiring fish images in different breeding environments; preprocessing the fish images to obtain a first fish image; inputting the first fish image into a target network model to obtain a fish behavior detection result, wherein the target network model is obtained by inputting the first fish image into an initial network model for training. The present invention uses image enhancement, noise reduction, augmentation and other technologies to preprocess the acquired images to improve the imaging quality and enrich the training set information; trains the above image data set based on an improved YOLOv3-Lite network to establish a fish behavior detection model, thereby realizing a method for rapid and low-cost mixed fish behavior detection. Specifically, an adjustable light source, a water quality control device and an oxygen generator are used to simulate a natural breeding environment; a Go-pro sports camera is used to accurately capture fish motion images, and synchronously transmits them to a high-performance mobile workstation for image quality inspection and storage; and an underwater fish behavior detection method based on an improved YOLOv3-Lite deep learning framework is established. By improving the backbone network, pooling module, and loss function, the problem of difficulty in feature extraction and detection of medium and small-scale targets in the traditional YOLO network is overcome. At the same time, the number of parameters is reduced, the model storage space is optimized, and online real-time dynamic detection is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A schematic diagram of the structure of a device for detecting the behavior of a mixed-breeding fish school provided in an embodiment of the present invention;

[0037] Figure 2 A flow chart of a method for detecting behavior of mixed-breeding fish schools provided in an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of the system structure for mixed fish school behavior detection provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] Fish farming economy occupies an increasingly important position in my country's agricultural economy, and the prospects for fish farming are very promising. In fish farming, accurate detection of fish behavior can provide intuitive information for fish health monitoring; at the same time, movement behavior can reflect the fish's preference for the farming environment and, to a certain extent, whether the farming water is suitable. At present, due to the pollution of water bodies caused by the expansion of human economic and social activities, the frequency of fish diseases and other stress phenomena has increased year by year. By observing the behavior of fish schools and accurately judging whether the fish are in an abnormal state, early warning information can be provided for fish health and water environment changes, which has become one of the important means to reduce the risk of aquaculture and improve the quality of fish catches. Traditional fish behavior detection is mainly carried out by manual continuous observation at the breeding site, and judgment is made based on experience according to the swimming state of fish, which requires a high level of knowledge of the observer; the process is time-consuming and labor-intensive, the observation results are highly subjective, and there is a possibility of misjudgment due to human factors. With the development of computer vision technology, machine vision has been widely used in fish behavior detection: by extracting color, texture, and shape features from images and normalizing and fusing them, combined with shallow machine learning models, rapid judgment of fish behavior can be achieved. However, this type of method has a single feature extraction, a small sample size, and weak robustness; the detection model does not adequately consider the specific physiological characteristics of different fish species, resulting in significant limitations in its application in actual production.

[0042] The present invention proposes a fast and low-cost method for mixed-breeding fish behavior detection. First, using a self-developed underwater image acquisition device, underwater high-definition images of two common edible fish under different hunger levels and different water oxygen content in a mixed-breeding environment are obtained; then, the acquired images are pre-processed using image enhancement, noise reduction, augmentation and other technologies to improve imaging quality and enrich training set information; finally, the above image dataset is trained based on the improved YOLOv3-Lite network to establish a fish behavior detection model (i.e., obtain the target network model), so that a more robust fish behavior detection result can be obtained.

[0043] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0044] The present invention adopts a self-developed underwater fish school behavior detection device to implement the fish school behavior detection method of the present invention. The specific fish school behavior detection device may include:

[0045] Water tank 4, array light source 5, oxygen sensor 3, data camera 1, biological filter 6, solid waste filter 7, oxygen generator 8 and terminal 2;

[0046] The array light source 5 is arranged at a preset distance (e.g., 1 meter) outside the water tank 4 and provides illumination for the water tank; the data camera 1 and the oxygen sensor 3 are both arranged in the water tank 4, the data camera 1 is used to obtain the fish school image, and the oxygen sensor 3 is used to detect the oxygen content in the water tank; the oxygen generator 8 is arranged outside the water tank 4 and connected to the oxygen sensor 3, and is used to input oxygen into the water tank according to the oxygen content; the terminal 2 is arranged outside the water tank 4 and connected to the data camera 1, and is used to process the input fish school image to obtain the fish school behavior detection result; the biological filter 6 and the solid waste filter 7 are connected and arranged outside the water tank to filter food residues and fish feces in the water. In a specific embodiment, the array light source is composed of 120 circularly arranged LED point light sources; the data cameras are set as two Go-pro Hero 7black underwater digital sports cameras.

[0047] This embodiment refers to Figure 1 , Figure 1 A schematic diagram of the structure of a device for detecting fish school behavior provided by an embodiment of the present invention is shown in FIG. Figure 1As shown in the figure, the device for detecting fish behavior consists of a planar array light source, two high-definition data cameras, a biological filter, a solid waste filter, an oxygen generator, and a laptop equipped with Adobe Photoshop image viewing software. Among them, the planar array light source consists of 120 circularly arranged LED point light sources, which can meet the lighting requirements of 2000-10000K, and is mainly used to enhance the difference between fish and water bodies and eliminate shooting shadows. The biological filter and solid waste filter are mainly used to filter food residues and fish feces in the water to ensure that the water quality meets the shooting requirements. The oxygen generator is turned on three times a day, and the integrated dissolved oxygen detector is used to maintain the dissolved oxygen in the water at 6.0-8.0 mg / L before the experiment. Image acquisition is completed by two Go-pro Hero 7black underwater high-definition digital sports cameras, which have a resolution of 12 million pixels and have a good capture effect on underwater moving targets. The two cameras are connected through a wireless shutter developed by Go-pro, which can realize underwater synchronous shooting and synchronous recording. The laptop model is Alienware M17, pre-installed with Windows 10 Professional system, with 16GB of memory, i7-9750H CPU model, and 8GB of video memory, which can meet the needs of real-time image viewing, real-time screening and other functions.

[0048] The device for detecting the behavior of fish school mentioned above is used, refer to Figure 2 , Figure 2 A flow chart of a method for detecting fish school behavior provided by an embodiment of the present invention, such as Figure 2 As shown, the method in this embodiment may include:

[0049] S201, respectively obtaining images of fish schools in different breeding environments.

[0050] Specifically, different breeding environments are obtained by setting the hunger level and oxygen content conditions;

[0051] A variety of fish are placed in the breeding environment for breeding, and corresponding fish school images under different breeding environments are obtained.

[0052] In this example, two common edible fish species, crucian carp and yellow catfish, were obtained in a mixed culture environment. In order to obtain as much behavioral information as possible under conditions such as fish stress and feeding, two groups of experiments were designed:

[0053] 1. Starvation experiment

[0054] All individuals in the fish group were fasted 24 hours before the experiment to ensure maximum feeding behavior. After the experiment began, the fish were overfed with appropriate floating or sinking feeds, and the fish feeding images were taken during the process.

[0055] 2. Hypoxia experiment

[0056] A nitrogen bubbler was used to fill the water with nitrogen to achieve a local hypoxic environment. Since crucian carp and yellow catfish can survive in extremely low oxygen levels, in order to monitor acute hypoxic stress responses, the oxygen levels in the water were determined to be 0.3, 0.75, and 1.5 mg / l in this experiment. During the experiment, the dissolved oxygen was first maintained at 1.5 mg / l, then gradually decreased to 0.75 mg / l, and finally decreased to 0.3 mg / l and maintained at this level for 20 minutes, and then returned to normal levels. In order to eliminate the influence of bubbles and foam generated by the bubbler on the imaging results, a blower was set up in the water and images of the fish under hypoxic conditions were taken during this process.

[0057] S202: pre-process the fish school image to obtain a first fish school image.

[0058] Specifically, the first fish school image is obtained by performing data enhancement, data noise reduction and data augmentation processing on the fish school image.

[0059] In this embodiment, data preprocessing includes three parts: data enhancement, data noise reduction and data augmentation.

[0060] 1. Data Augmentation

[0061] Under natural conditions, the water tank is usually full of suspended sediments and feed residues, which will greatly affect the underwater imaging effect. In the present invention, the contrast-limited adaptive histogram equalization method (CLAHE) and discrete wavelet transform (DWT) are used to enhance the original image (such as a school of fish image) to improve its contrast and sharpness, so that the contrast between the fish and the background is enhanced, thereby obtaining a first school of fish image.

[0062] 2. Data Noise Reduction

[0063] Since underwater images are inevitably interfered by various noises during the acquisition, transmission and processing, the image quality will deteriorate. In order to eliminate the interference of high-frequency noise and bubbles in the water on the imaging results, all fish school images are smoothed using a median filter with a window size of 64×64 pixels to eliminate the unevenness of background lighting, and the first fish school image with better image visual display effect is obtained.

[0064] 3. Data augmentation

[0065] Image processing based on deep learning has greatly improved the accuracy and efficiency of target detection with its powerful feature expression ability and end-to-end learning ability, and sufficient training data is the prerequisite for ensuring the excellent performance of deep learning models; models trained without a large amount of training data often have problems such as overfitting and low generalization ability. However, due to the complexity of underwater image acquisition of fish schools, it is difficult to obtain sufficient original data (i.e., fish school images). Therefore, in order to solve the problem of insufficient training sample size in the present invention, data augmentation is used to increase the amount of relevant data in the data set and enrich feature information, so as to maximize the availability of small sample data sets and solve the problem of insufficient sample size. The following three augmentation strategies are used for data augmentation of 2806 original images: flipping, rotating, and blurring, and finally 72,000 first fish school images are obtained to form a new training set.

[0066] S203. Inputting the first fish school image into a target network model to obtain a fish school behavior detection result, wherein the target network model is obtained by inputting the first fish school image into an initial network model for training.

[0067] In an optional embodiment, before inputting the first fish school image into the target network model to obtain the fish school behavior detection result, the method further includes:

[0068] Construct the initial network model, wherein the initial network model includes an improved backbone network structure, an improved pooling network structure and an improved loss function, wherein the improved backbone network structure is used to expand the channel dimension of the input first fish school image, and obtain a reduced-dimensionality feature image after realizing deep convolution; the improved pooling network structure is used to convert the reduced-dimensionality feature images of different dimensions into feature images of the same dimension, and can also be used to fuse the reduced-dimensionality feature images of different scales to obtain a fused feature image; the improved loss function is used to calculate the loss function of the fused feature image in combination with the loss function of GIoU, and if the loss function of the fused feature image is greater than a preset improved function threshold, the fish school behavior detection result is obtained.

[0069] Specifically, the first fish school image is input into a target network model to obtain a fish school behavior detection result, including: the target network model obtains the fish school behavior detection result by using three indicators: precision, recall rate, and engagement ratio.

[0070] In the prior art, YOLO (The You Only Look Once) is a one-stage target detection model based on regression thinking, which performs target detection and target positioning simultaneously, greatly improving the accuracy of target detection and meeting the requirements of real-time detection. In order to improve the shortcomings of the traditional YOLO network in small target detection, YOLO version 3 (i.e., YOLOv3) proposed a new network called Darknet-53, which can predict targets at three different scales. The network structure of YOLOv3 mainly includes two parts: Darknet-53 network and YOLO layer. Darknet-53 is used as the backbone network to extract image features. It contains 53 convolutional layers and introduces a residual structure. Although the multi-scale detection method adopted by YOLOv3 has a good detection effect on small targets, its backbone network is relatively complex, which seriously affects the detection speed. In order to overcome the above problems of the prior art, the present invention proposes a lightweight YOLOv3-LITE network based on the traditional YOLOv3 framework, which adopts a multi-scale feature image parallel fusion structure, an improved spatial pyramid pooling network and a GIoU-based loss function, which greatly improves the detection efficiency while ensuring the accuracy. The main innovations of this network model are as follows:

[0071] 1. Propose a backbone network based on MobileNetv2

[0072] Compared with Darknet-53, MobileNetv2 has fewer network parameters and lower model complexity, which facilitates the real-time detection of fish school behavior. In MobileNetv2, a reverse residual structure combined with deep separable convolution is proposed to reduce the number of parameters and accelerate forward propagation. For MobileNetv2, the key component is a deep separable convolution block based on reverse residual. Specifically, the input first fish school image is subjected to channel dimension expansion, and deep convolution is performed to obtain a reduced-dimensional feature image. For example, the first fish school image input in the convolution block is first subjected to 1×1 convolution to expand the channel dimension, and then 3×3 convolution is performed to achieve deep convolution; finally, 1×1 convolution is performed to reduce the dimension to obtain a reduced-dimensional feature image.

[0073] 2. Propose an improved spatial pyramid pooling network

[0074] Introducing spatial pyramid pooling at the detection end can convert feature maps of different sizes to the same dimension, and can also extract different features from different scales and fuse them, thereby improving detection accuracy without increasing the number of parameters and computational time complexity. In the present invention, two sets of parallel spatial pyramid pooling networks are used to further expand the number of feature channels and improve the model's ability to describe details. Not only can the reduced-dimensional feature images of different dimensions be converted into feature images of the same dimension, but the reduced-dimensional feature images of different scales can also be fused to obtain a fused feature image. The dimensions corresponding to the two networks are: 1×1, 2×2, 3×3, 4×4 and 1×1, 5×5, 9×9, 13×13, respectively.

[0075] 3. Propose a loss function based on GIoU

[0076] The traditional YOLOv3 network loss function consists of three parts, and its calculation formula is as follows:

[0077] Loss=Loss coordinate +Loss confidence +Loss class (1)

[0078] Among them, Loss coordinate Indicates the coordinate loss, Loss confidence Indicates the confidence loss, Loss class Represents the amount of category loss, and the specific expansion is:

[0079]

[0080] Then, the traditional IoU loss can only be applied to the case where the prediction window overlaps with the labelled window; if the prediction window does not overlap with the labelled window, the IoU loss is 0, which loses the meaning of adjusting the model. In order to optimize the IoU loss function, the present invention introduces GIoU into the loss function, and the improved network loss function is:

[0081]

[0082] The present invention first constructs the above-mentioned initial network model, and then trains the initial network model with a large amount of data through a training set of the first fish school image, so as to obtain a target network model with higher accuracy, and then in the subsequent experimental process, the first fish school image is input into the target network model to obtain the fish school behavior detection result.

[0083] We use three indicators, namely precision, recall, and intersection over union (IoU), to evaluate the accuracy of the model in detecting fish school behavior. The calculation formula is as follows:

[0084]

[0085]

[0086]

[0087] Among them, TP is true positive (the number of fish detected correctly), FN is false negative (the number of fish missed), and FP is false positive (the number of fish misdetected). CandidateBox is the location of the model detection box, and GroundTruth is the location of the manually marked box. The YOLOv3-Lite model is compared with the other four pre-trained networks Faster-RCNN, YOLO, YOLOv2, YOLOv3, and SSD for detection accuracy. All comparison networks were pre-trained on ImageNet, and all comparison experiments were carried out according to the same steps of YOLOv3-Lite. The results of the comparison experiments are shown in Table 1:

[0088] Table 1 Detection accuracy of underwater fish school behavior of different models

[0089]

[0090] From the results, we can see that the precision (Precision), recall (Recall), and intersection over Union (IoU) of the YOLOv3-Lite model are , which are 15%-30% higher than the control model, respectively, indicating that this method has great application value in fish school behavior detection.

[0091] In an optional embodiment, after inputting the first fish school image into the target network model to obtain the fish school behavior detection result, it also includes: verifying the robustness of the target network model by analyzing the accuracy of the fish school behavior detection in a feeding environment with different lighting and visibility.

[0092] In order to prove the robustness of the method of the present invention to dynamic environmental changes, we tested its accuracy under different lighting conditions and underwater visibility. The robustness analysis experiment of the present invention designed a total of 9 different lighting and visibility levels, namely: dim-pure water quality, dim-mild pollution, dim-severe pollution, darker-pure water quality, darker-mild pollution, darker-severe pollution, bright-pure water quality, bright-mild pollution, bright-severe pollution. In this experiment, the water quality is controlled by different opening frequencies of the biological filter and the solid waste filter, and the light intensity is controlled by the illumination value of the LED light source. From Table 2, we can see that the YOLOv3-Lite model can achieve high detection accuracy under different lighting conditions and underwater visibility. Under the worst conditions of dim-severe pollution and the best observation conditions of bright-pure water quality, the change range of each evaluation index does not exceed 10%, indicating that the model has high robustness to different shooting environments.

[0093] Table 2 Accuracy of the method of the present invention under different lighting conditions and underwater visibility

[0094]

[0095] Figure 3 A schematic diagram of the system structure for detecting fish school behavior provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the fish school behavior detection system of this embodiment may include: a processor 31 and a memory 32.

[0096] A memory 32, used for storing computer programs (such as application programs and function modules for implementing the above-mentioned method for detecting fish school behavior), computer instructions, etc.;

[0097] The above-mentioned computer programs, computer instructions, etc. may be stored in one or more memories 32 in partitions. And the above-mentioned computer programs, computer instructions, data, etc. may be called by the processor 31.

[0098] The processor 31 is used to execute the computer program stored in the memory 32 to implement the various steps in the method involved in the above embodiment.

[0099] For details, please refer to the relevant description in the previous method embodiment.

[0100] The processor 31 and the memory 32 may be independent structures or integrated structures. When the processor 31 and the memory 32 are independent structures, the memory 32 and the processor 31 may be coupled and connected via a bus 33 .

[0101] The server of this embodiment can execute Figure 2 For the technical solution in the method shown, its specific implementation process and technical principles can be found in Figure 2 The relevant descriptions in the method shown will not be repeated here.

[0102] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When at least one processor of a user device executes the computer-executable instructions, the user device executes the above-mentioned various possible methods.

[0103] Among them, computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also be present in a communication device as discrete components.

[0104] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting mixed fish behavior based on YOLOv3-Lite, characterized in that: include: Obtain images of fish schools in different breeding environments; Preprocessing the fish school image to obtain a first fish school image; Inputting the first school of fish image into a target network model to obtain a school of fish behavior detection result, wherein the target network model is obtained by inputting the first school of fish image into an initial network model for training; The method of obtaining images of fish schools in different breeding environments includes: Different breeding environments can be obtained by setting the hunger level and oxygen content conditions; Placing a variety of fish in the breeding environment for breeding, and obtaining corresponding fish school images under different breeding environments; Preprocessing the fish school image to obtain a first fish school image includes: The first fish school image is obtained by performing data enhancement, data noise reduction and data augmentation processing on the fish school image; Before inputting the first fish school image into the target network model to obtain the fish school behavior detection result, the method further includes: Constructing the initial network model, wherein the initial network model includes an improved backbone network structure, an improved pooling network structure and an improved loss function, wherein the improved backbone network structure is used to expand the channel dimension of the first fish school image input, and obtain a reduced-dimensional feature image after deep convolution; The improved pooling network structure is used to convert the reduced-dimensionality feature images of different dimensions into feature images of the same dimension, and can also be used to fuse the reduced-dimensionality feature images of different scales to obtain a fused feature image; The improved loss function is used to calculate the loss function of the fused feature image in combination with the loss function of GIoU. If the loss function of the fused feature image is greater than a preset improved function threshold, the fish school behavior detection result is obtained; Inputting the first fish school image into the target network model to obtain a fish school behavior detection result includes: The target network model obtains the fish school behavior detection result by using three indicators: precision, recall rate and engagement ratio; After inputting the first fish school image into the target network model to obtain the fish school behavior detection result, the method further includes: The robustness of the target network model is verified by analyzing the accuracy of the fish school behavior detection in the feeding environment with different lighting and visibility.

2. A device for mixed fish behavior detection based on YOLOv3-Lite, applied to the mixed fish behavior detection method of claim 1, characterized in that: The device comprises: Water tank, array light source, oxygen sensor, data camera, biofilter, solid waste filter, oxygen generator and terminal; The planar array light source is disposed at a preset distance outside the water tank and provides illumination for the water tank; The data camera and the oxygen sensor are both arranged in the water tank, the data camera is used to obtain the image of the school of fish, and the oxygen sensor is used to detect the oxygen content in the water tank; The oxygen concentrator is arranged outside the water tank and connected to the oxygen sensor, and is used to input oxygen into the water tank according to the oxygen content; The terminal is arranged outside the water tank and connected to the data camera, and is used to process the input fish school images to obtain fish school behavior detection results; The biological filter and the solid waste filter are connected and arranged outside the water tank to filter food residues and fish feces in the water.

3. The device according to claim 2, characterized in that The surface array light source is composed of 120 LED point light sources arranged in a circle; The data cameras are configured as two Go-pro Hero 7black underwater digital sports cameras.

4. A system for detecting mixed fish behavior based on YOLOv3-Lite, characterized in that: It comprises a memory and a processor, wherein the memory stores executable instructions of the processor; wherein the processor is configured to execute the method for detecting the behavior of a mixed fish school as claimed in claim 1 by executing the executable instructions.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for detecting the behavior of mixed-breeding fish schools described in claim 1 is implemented.

Citation Information

Cited By

  • Crocodile polyculture behavior abnormity early warning identification system

    CN121542954A