Neural network-based cultured fish behavior situation identification method, electronic equipment and storage medium

Through the neural network-based fish behavior situation recognition method, using network cameras and DenseNet models, real-time monitoring of fish behavior situations is realized, which solves the problem of uneven technical levels of aquaculture personnel and backward early warning, and improves breeding efficiency and water quality. Product quality and safety.

CN118736671APending Publication Date: 2024-10-01JIMEI UNIV +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410764919.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The technical level of aquaculture personnel is uneven and the early warning of behavior patterns of cultured objects is lagging behind, resulting in low fish breeding efficiency and economic benefits, and it is difficult to guarantee the quality and safety of aquatic products.

Method used

A neural network-based behavioral situation identification method for farmed fish is used to collect videos through a network camera, build an image set and train the DenseNet dual-stream convolutional neural network model, and establish a monitoring platform to achieve real-time monitoring and identification of fish behavior situations.

Benefits of technology

It realizes intelligent monitoring and identification of fish status, helps farmers detect problems in time, improves breeding efficiency and economic benefits, improves the quality and safety of aquatic products, and promotes the development of the aquaculture industry towards smart, efficient and green development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736671A_ABST
    Figure CN118736671A_ABST
Patent Text Reader

Abstract

The invention discloses a cultured fish behavior situation identification method based on a neural network, electronic equipment and a storage medium, and the method achieves the real-time monitoring of the behavior situation of fish, and comprises the following steps: completing the deployment of a network camera of a culture workshop; acquiring a fish behavior situation video by a network camera, and constructing a first image set based on the fish behavior situation video; performing video segmentation on the first image set, and selecting fish behavior image frames corresponding to different behavior situations of fishes to obtain a second image set; establishing a training data set according to the second image set, and training, optimizing and testing a DenseNet double-flow convolutional neural network model; the method comprises the following steps: creating a monitoring platform based on a Web page end, and realizing communication between a client and a server of the monitoring platform by adopting an HTTP / HTTPS protocol; a B / S mode is adopted to construct a software development system, and a back end combines an SSM framework, a Nginx reverse proxy and a MySQL database; and monitoring the behavior situation of the fish by using the monitoring platform, and displaying a monitoring result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fish farming, and in particular to a method, electronic equipment and storage medium for identifying behavior status of farmed fish based on a neural network. Background Art

[0002] By realizing real-time monitoring of fish behavior, breeders can promptly identify problems and take countermeasures, realize scientific and efficient breeding, improve fish growth rate, breeding efficiency and economic benefits, improve the quality and safety of aquatic products, and promote the development of aquaculture towards smart, efficient and green.

[0003] In recent years, computer vision and deep learning technologies have begun to be initially applied in intelligent farming, but the assessment of fish behavior based on machine vision technology is still in the exploratory and experimental stage.

[0004] Therefore, establishing a method and system for identifying the behavioral status of farmed fish to solve the problems of uneven technical levels of aquaculture personnel and backward early warning of the behavioral status of farmed objects has become an urgent problem to be solved in the current aquaculture field. Summary of the invention

[0005] The purpose of the present invention is to provide a method, electronic device and storage medium for identifying the behavior of farmed fish based on a neural network. By realizing real-time monitoring of the behavior of fish, farmers can promptly discover problems and take countermeasures to achieve scientific and efficient farming.

[0006] In order to achieve the above object, one of the solutions of the present invention is:

[0007] A method for identifying behavior status of farmed fish based on neural network comprises the following steps:

[0008] Step S10, completing the deployment of network cameras in the breeding workshop;

[0009] Step S20, collecting fish behavior status video by the network camera, and constructing a first image set based on the fish behavior status video;

[0010] Step S30, performing video segmentation on the first image set, selecting fish behavior image frames corresponding to different behavior states of fish, and obtaining a second image set;

[0011] Step S40: establishing a training data set according to the second image set, and training, optimizing and testing a DenseNet two-stream convolutional neural network model;

[0012] Step S50: Create a monitoring platform based on a Web page, and use HTTP / HTTPS protocol to implement communication between the client and server of the monitoring platform;

[0013] Step S60: Use the B / S mode to build a software development system, and the back end combines the SSM framework, Nginx reverse proxy and MySQL database;

[0014] Step S70: monitor the behavior of fish using the monitoring platform and display the monitoring results.

[0015] In some embodiments, the step S10 is specifically as follows: a HIKVISION high-resolution network camera is used and hung just above the water surface of the fish to be monitored, so as to cover the entire target water surface. The network camera has an infrared function and is connected to a hard disk recorder and a monitor via a video cable.

[0016] In some embodiments, the fish behavior status video in step S20 includes 3 to 18 types of fish behavior status, such as normal, feeding, hypoxia, high water temperature, and disturbed states. The actual collected states can be defined according to the monitoring needs, and the accuracy of the model application can be maintained above 90%. According to the required preset fish behavior status standards, a long-term video recording is performed for each fish behavior status, thereby constructing a first image set.

[0017] In some embodiments, the step S30 specifically includes: performing image frame screening on the first image set, screening out 25,000 image frames for each fish behavior status.

[0018] In some embodiments, the step S40 specifically includes: performing image processing on the second image set using a median filtering denoising algorithm and HSV color space to improve the image quality, and using JPEG compression encoding to compress the image, thereby establishing a training data set, and training, optimizing and testing the DenseNet two-stream convolutional neural network model.

[0019] In some embodiments, in step S50, the front end of the monitoring platform uses the React framework to build an HTTP-based Web service, so that users can remotely access the monitoring platform on any standard Web browser without distance restrictions; HTML5, CSS3 and JavaScript front-end mainstream development technologies are used, among which HTML5 is used to define the markup language of the web page structure and content, CSS3 is used to define the style and layout of the web page, and JavaScript is used to achieve interactivity and dynamic functions; a single-page application (SPA) architecture is used to ensure the smoothness of user interaction with the page, and AJAX technology is used to keep the displayed results up to date at all times to ensure that the page can be dynamically refreshed; a user identity authentication system is established, and basic permissions are opened to users, and the user identity is verified using the secure identity authentication protocol OAuth, and only authorized users can enter the system; in terms of system security, cross-site scripting (XSS) security precautions are implemented, and the communication between the front end and the server uses the HTTPS protocol and SSL encryption technology to ensure its security performance; for XSS attacks, the main defense method is to filter and escape user input to avoid the injection of malicious scripts.

[0020] Furthermore, the step S60 is specifically as follows: the B / S mode is selected in the software development system of the web page end, and the user can interact with the server only through the web browser, receive and process data on the server, and finally return the processing results to the web browser; the development of the monitoring platform adopts the SSM framework + Nginx + MySQL architecture, and uses the SSM framework as the software development architecture, deploys it to the Nginx proxy server, and uses MySQL as the database. The back-end application provides a RESTful API for the front-end to call. The monitoring platform uses a high-performance computer host as the server, such as an Intel i9-13900KF CPU, equipped with an NVIDIA GeForce RTX 4090 graphics card, and a computer system of Windows. The host is used as the server of the monitoring platform on the one hand, and is used for model training on the other hand. The Nginx reverse proxy is installed and deployed in the high-performance computer host as the system operation server, and the open source MySQL is used to manage the data in the database.

[0021] Secondly, the step S70 is specifically as follows: the user clicks the collection button on the web page to realize online monitoring and result display of the fish behavior status; when the monitoring platform is running, the front end obtains image information, and after the springMVC at the back end listens to the request signal, the picture transmitted from the front end is stored in a local file, and the front end picture is compared with the script file of the neural network model by calling the neural network model, and then the probability value of the fish being in a certain behavior status is inferred, and matched with the specific status information stored in the MySQL database in advance, and finally the specific result is returned to the front end for display.

[0022] The second solution of the present invention is:

[0023] An electronic device comprises a processor, a memory and an application program; the application program is stored in the memory and is configured so that the processor executes the method for identifying the behavior and situation of farmed fish based on a neural network.

[0024] The third solution of the present invention is:

[0025] A computer-readable storage medium stores a computer program; when the computer program is executed in the computer, the computer is caused to execute the method for identifying the behavior and situation of farmed fish based on a neural network.

[0026] After adopting the above technical solution, the present invention has the following technical effects:

[0027] The present invention can realize intelligent monitoring and identification of the status of farmed fish, allowing farmers to discover problems in time and take corresponding measures to achieve efficient and intelligent farming, and provides a new feasible solution for the application of fish behavior status intelligent identification technology on Web pages. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a flow chart of a specific embodiment of the present invention;

[0029] Figure 2 This is a picture showing the effect of using median filtering to reduce noise on the cultured eel image collected in a specific embodiment of the present invention;

[0030] Figure 3 This is a graph showing changes in the training loss of a DenseNet model according to a specific embodiment of the present invention;

[0031] Figure 4 This is a graph showing the accuracy change of the DenseNet model in a specific embodiment of the present invention;

[0032] Figure 5 A web page workflow diagram of a specific embodiment of the present invention;

[0033] Figure 6 It is a SSM system framework diagram of a specific embodiment of the present invention;

[0034] Figure 7 It is an operation flow chart of a specific embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.

[0036] refer to Figures 1 to 7 As shown, the present invention discloses a method for identifying the behavior of farmed fish based on a neural network, which is applied to factory-farmed eels and includes the following steps:

[0037] Step S10, completing the deployment of network cameras in the breeding workshop;

[0038] Step S20, collecting behavioral status videos of six types of eels by a network camera, and constructing a first image set based on the behavioral status videos of the eels;

[0039] Step S30, performing video segmentation on the first image set, selecting image frames of six behaviors of eels that meet the requirements, and obtaining a second image set;

[0040] Step S40: establishing a training data set according to the second image set, and training, optimizing and testing the DenseNet two-stream convolutional neural network model;

[0041] Step S50: Create a monitoring platform based on the Web page, and use HTTP / HTTPS protocol to achieve communication between the client and server of the monitoring platform;

[0042] Step S60: Use the B / S mode to build a software development system, and the back end combines the SSM framework, Nginx reverse proxy and MySQL database;

[0043] Step S70: monitor the behavior of the eel online using the monitoring platform and display the monitoring results.

[0044] Through the above scheme, the present invention can realize intelligent monitoring and identification of the status of farmed fish, allowing farmers to discover problems in time and take corresponding measures to achieve efficient and intelligent farming, and provides a new feasible solution for the application of intelligent identification technology of fish behavior status on the Web page side.

[0045] Specific embodiments of the present invention are shown below.

[0046] The above step S10 is specifically as follows: a HIKVISION high-resolution network camera is used and hung just above the surface of the eel breeding water, so as to cover the entire target water surface. The network camera has an infrared function and is connected to a hard disk recorder and a monitor via a video cable.

[0047] In the above step S20, six behavioral states of eels are collected, including normal, feeding, hypoxia, high water temperature and disturbed state, and long-term video recording is performed according to the collected eel behavioral state standards to construct a first image set.

[0048] The above step S30 specifically includes: performing image frame screening on the first image set, and screening out 25,000 image frames for each fish behavior status.

[0049] The above step S40 is specifically as follows: using a median filter denoising algorithm and HSV color space to process the second image set to improve the image quality, and using JPEG compression encoding to compress the image, thereby establishing a training data set, and training, optimizing and testing the DenseNet two-stream convolutional neural network model.

[0050] In the above step S50, the front end of the monitoring platform uses the React framework to build an HTTP-based Web service, so that users can remotely access the monitoring platform on any standard Web browser without distance restrictions; HTML5, CSS3 and JavaScript front-end mainstream development technologies are used, among which HTML5 is used to define the markup language of the web page structure and content, CSS3 is used to define the style and layout of the web page, and JavaScript is used to achieve interactivity and dynamic functions; a single-page application (SPA) architecture is used to ensure the smoothness of user interaction with the page, and AJAX technology is used to keep the displayed results up to date at all times to ensure that the page can be dynamically refreshed; a user identity authentication system is established, and basic permissions are opened to users, and the user identity is verified using the secure identity authentication protocol OAuth, and only authorized users can enter the system; in terms of system security, cross-site scripting (XSS) security precautions are implemented, and the communication between the front end and the server uses the HTTPS protocol and SSL encryption technology to ensure its security performance; for XSS attacks, the main defense method is to filter and escape user input to avoid the injection of malicious scripts.

[0051] Furthermore, the above step S60 is specifically as follows: the B / S mode is selected in the software development system of the Web page end, and the user can interact with the server only through the Web browser, receive and process data on the server, and finally return the processing results to the Web browser; the development of the monitoring platform adopts the SSM framework + Nginx + MySQL architecture, and uses the SSM framework as the software development architecture, deploys it to the Nginx proxy server, and uses MySQL as the database. The back-end application provides a RESTful API for the front-end to call. The monitoring platform uses a high-performance computer host as the server, such as the Intel i9-13900KF CPU, equipped with an NVIDIA GeForce RTX 4090 graphics card, and the computer system is Windows. The host is used as the server of the monitoring platform on the one hand, and is used for model training on the other hand. The Nginx reverse proxy is installed and deployed in the high-performance computer host as the system operation server, and the open source MySQL is used to manage the data in the database.

[0052] Secondly, the above step S70 is specifically as follows: the user realizes online monitoring and result display of fish behavior status by clicking the collection button on the web page; when the monitoring platform is running, the front end obtains image information, and after the springMVC at the back end listens to the request signal, it stores the picture transmitted from the front end in a local file, and compares the front end picture with the script file of the neural network model by calling the neural network model, and then infers the probability value of the fish being in a certain behavior status, and matches it with the specific status information stored in the MySQL database in advance, and finally returns the specific result to the front end for display.

[0053] In addition, after the model is trained and optimized, the test accuracy of the six behaviors of eels is improved as shown in the following table:

[0054]

[0055] It can be seen from the table that after the model is trained and optimized, its test accuracy is greatly improved.

[0056] The present invention also discloses an electronic device, comprising a processor, a memory and an application program; the application program is stored in the memory and is configured to execute the above method by the processor.

[0057] The present invention also discloses a computer-readable storage medium, which stores a computer program; when the computer program is executed in a computer, the computer executes the above method. The storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0058] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.

Claims

1. A method for identifying the behavior of farmed fish based on a neural network, characterized in that The following steps are involved: Step S10, completing the deployment of network cameras in the breeding workshop; Step S20, collecting fish behavior status video by the network camera, and constructing a first image set based on the fish behavior status video; Step S30, performing video segmentation on the first image set, selecting fish behavior image frames that meet a preset standard, and obtaining a second image set; Step S40: establishing a training data set according to the second image set, and training, optimizing and testing a DenseNet two-stream convolutional neural network model; Step S50: Create a monitoring platform based on a Web page, and use HTTP / HTTPS protocol to implement communication between the client and server of the monitoring platform; Step S60: Use the B / S mode to build a software development system, and the back end combines the SSM framework, Nginx reverse proxy and MySQL database; Step S70: monitor the behavior of fish using the monitoring platform and display the monitoring results.

2. The method for identifying the behavior of farmed fish based on a neural network as claimed in claim 1, characterized in that The step S10 is specifically as follows: A HIKVISION high-resolution network camera is used and suspended just above the water surface where the fish to be monitored are located.

3. The method for identifying the behavior of farmed fish based on a neural network as claimed in claim 1, characterized in that: The fish behavior status video in step S20 includes 3 to 18 types of fish behavior status.

4. The method for identifying the behavior of farmed fish based on a neural network as claimed in claim 1, characterized in that The step S30 is specifically as follows: The first image set is subjected to image frame screening, and 25,000 image frames are screened for each fish behavior status.

5. The method for identifying the behavior of farmed fish based on a neural network as claimed in claim 1, characterized in that The step S40 is specifically as follows: The second image set is processed by using a median filtering denoising algorithm and an HSV color space, and image compression is performed by using JPEG compression coding, thereby establishing a training data set, and training, optimizing and testing a DenseNet two-stream convolutional neural network model.

6. The method for identifying behavior of farmed fish based on neural network as claimed in claim 1, characterized in that: In step S50, the front end of the monitoring platform uses the React framework to build a HTTP-based Web service; HTML5 is used to define the markup language of the web page structure and content, CSS3 is used to define the style and layout of the web page, and JavaScript is used to achieve interactivity and dynamic functions; a single-page application architecture is used to ensure the smoothness of user interaction with the page, and AJAX technology is used to keep the displayed results up to date at all times; a user identity authentication system is established, and basic permissions are opened to users, and the identity authentication protocol OAuth is used to verify the user's identity; In terms of system security, cross-site scripting security precautions are implemented, and the communication between the front end and the server uses HTTPS protocol and SSL encryption technology; The defense against XSS attacks is to filter and escape user input.

7. The method for identifying behavior of farmed fish based on neural network as claimed in claim 6, characterized in that: In the step S60, the B / S mode is selected in the software development system of the Web page; the development of the monitoring platform adopts the SSM framework + Nginx + MySQL architecture, and the SSM framework is used as the software development architecture, which is deployed in the Nginx proxy server. The database uses MySQL, and the back-end application provides a RESTful API for the front-end to call.

8. The method for identifying the behavior of farmed fish based on a neural network as claimed in claim 7, characterized in that The step S70 is specifically as follows: Users can realize online monitoring and result display of fish behavior status by clicking the collection button on the web page; When the monitoring platform is running, the front end obtains image information. After the springMVC at the back end listens to the request signal, it stores the picture transmitted by the front end in a local file, and compares the front end picture with the script file of the neural network model by calling the neural network model, and then infers the probability value of the fish being in a certain behavioral state, and matches it with the specific status information stored in the MySQL database in advance, and finally returns the specific results to the front end for display.

9. An electronic device, characterized in that: It comprises a processor, a memory and an application program; the application program is stored in the memory and is configured so that the processor executes the method for identifying the behavior status of farmed fish based on a neural network as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program; when the computer program is executed in the computer, the computer is caused to execute the method for identifying the behavior status of farmed fish based on a neural network as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Fish quantity estimation method based on Unet and BP neural network

    CN115984682A

  • Fish behavior state recognition method based on deep learning

    CN116469161A

  • Fish behavior identification method and system based on spatial pyramid attention

    CN116824454A

  • Intelligent fish identifying and monitoring method and system based on multi-sensor data

    CN117214904A

  • A ship

    KR102554263B1