Bird detection method, device and electronic equipment in ecological zone
Through edge-end intelligent devices and multi-process technology strategies, birds in the ecological zone are automatically detected and bird species and density maps are generated, which solves the problem of insufficient timeliness and accuracy of bird detection in the existing technology and achieves real-time, Comprehensive and accurate ecosystem monitoring.
Patent Information
- Application Number
- CN202210854745.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-18
AI Technical Summary
Existing technology cannot effectively and timely detect the number and diversity of bird populations, making it difficult to accurately understand changes in ecosystem environmental quality. Manual detection consumes a lot of manpower and material resources, and lacks timeliness and accuracy.
Use edge-end smart devices to collect ecological zone scenes, use pre-trained bird recognition models for image data processing, and combine multi-process technology strategies to determine the execution order of bird positions, fine-grained identification and density estimation processes, and generate bird species and Density map and transmitted to the front-end display device through the LAN.
It achieves automated, real-time and accurate bird detection, reduces the difficulty and time of manual monitoring, improves the timeliness and comprehensiveness of monitoring data, and solves the problems of incomplete monitoring data and large network bandwidth usage.
Smart Images

Figure CN115100687B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of detection technology, and more specifically, to a method, device and electronic equipment for detecting birds in an ecological zone. Background Art
[0002] Birds are an important part of nature's ecosystem and play an irreplaceable role in maintaining ecological balance. Their population size and diversity reflect the health of the local ecosystem to a certain extent. However, current bird detection is still mainly based on manual detection, which not only fails to ensure timeliness and accuracy, but also requires a lot of manpower and material resources.
[0003] Currently, there is no complete set of bird ecosystem monitoring methods, making it difficult to understand changes in ecosystem environmental quality in a timely manner. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a method, device and electronic device for detecting birds in an ecological zone.
[0005] According to an embodiment of the present disclosure, a method for detecting birds in an ecological zone includes: using an edge-end intelligent device to collect scenes in the ecological zone to obtain an image data set to be detected, wherein the image data set to be detected includes multiple frames of image data to be detected; inputting each frame of the image data in the image data set to be detected into a pre-trained bird recognition model, and outputting a first target image data set, wherein the first target image data set is characterized as image data of birds included in the image data set to be detected.
[0006] According to an embodiment of the present disclosure, after outputting the first target image data set, it also includes: based on a multi-process technical strategy, determining the execution order of the bird position determination process, the bird fine-grained identification process and the bird density estimation process; executing the bird position determination process, the bird fine-grained identification process and the bird density estimation process according to the execution order; when a first preset number of types of birds are identified, terminating the execution of the bird position determination process; when a second preset number of types of birds are identified, terminating the execution of the bird fine-grained identification process; and when a third preset number of types of birds are identified, terminating the execution of the bird density estimation process.
[0007] According to an embodiment of the present disclosure, before executing the bird position determination process, the bird fine-grained identification process and the bird density estimation process according to the execution order, it also includes: establishing a multi-process sharing list based on the multi-process technical strategy, wherein the multi-process sharing list includes a bird position list, a bird density list and a bird species list; wherein the bird position list is used to store the output bird position data until the execution of the bird position determination process is completed when executing the bird position determination process; the bird density list is used to store the output bird quantity data until the execution of the bird density estimation process is completed when executing the bird density estimation process; the bird species list is used to store the output bird species data until the execution of the bird fine-grained identification process is completed when executing the bird fine-grained identification process.
[0008] According to an embodiment of the present disclosure, the execution of the bird position determination process includes: inputting each frame of the image data in the first target image data set into a pre-trained bird recognition model, and outputting the position data of the bird in the image data; and marking the image data according to the position data of the bird in the image data to obtain a second target image data set.
[0009] According to an embodiment of the present disclosure, the execution of the bird fine-grained recognition process includes: inputting the second target image data set into a pre-trained fine-grained model to obtain the species data of the birds in the second target image data set.
[0010] According to an embodiment of the present disclosure, the execution of the bird density estimation process includes: inputting each frame of the image data in the first target image data set into a pre-trained density model, and outputting a bird flock density map corresponding to the first target image data set.
[0011] According to an embodiment of the present disclosure, after outputting the bird flock density map corresponding to the first target image data set, the method further includes: utilizing a local area network to transmit the bird flock density map to a front-end display device for display, wherein the bird flock density map includes the quantity data and bird identification.
[0012] According to an embodiment of the present disclosure, after obtaining the position data and species data, it also includes: generating a bird flock species map based on the position data and species data of the birds, wherein the bird flock species map includes the position data and species data of all birds in the second target image data set; and transmitting the bird flock species map to a front-end display device for display using a local area network.
[0013] Another aspect of the present disclosure provides an ecological bird detection device, including: a first acquisition module, used to use edge-end intelligent devices to collect scenes in an ecological area to obtain an image data set to be detected, wherein the image data set to be detected includes multiple frames of image data to be detected; a first output module, used to input each frame of the image data in the image data set to be detected into a pre-trained bird recognition model, and output a first target image data set, wherein the first target image data set is characterized as image data of birds included in the image data set to be detected.
[0014] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method.
[0015] According to an embodiment of the present disclosure, after setting an edge-end intelligent device to collect scenes in an ecological zone to obtain an image data set to be detected, each frame of image data in the image data set to be detected is input into a pre-trained bird recognition model for recognition, and the image data that does not include birds in the image data set to be detected can be filtered to obtain a first target image data set that includes birds in the image data set to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 The exemplary system architecture of the bird detection method and device that can be applied in an ecological zone according to the embodiments of the present disclosure is schematically shown;
[0018] Figure 2 A flowchart of a method for detecting birds in an ecological zone according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 3 The flowchart of the method for detecting birds in an ecological zone according to an embodiment of the present disclosure after outputting a first target image data set is schematically shown;
[0020] Figure 4 A flowchart schematically shows a process of determining a bird position in a bird detection method within an ecological zone according to an embodiment of the present disclosure;
[0021] Figure 5 A flowchart of the bird detection method in an ecological zone according to an embodiment of the present disclosure after obtaining position data and species data is schematically shown;
[0022] Figure 6A schematic diagram showing the bird flock type effect of the bird detection method in an ecological zone according to an embodiment of the present disclosure;
[0023] Figure 7 A bird flock density effect diagram of a bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 8 A block diagram schematically illustrates a bird detection device in an ecological zone according to an embodiment of the present disclosure; and
[0025] Fig. 9 A block diagram of an electronic device suitable for implementing the above-mentioned bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0029] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] Figure 1 An exemplary system architecture of a bird detection method and device that can be applied in an ecological zone according to an embodiment of the present disclosure is schematically shown.
[0031] It should be noted that Figure 1 The examples shown are only examples of system architectures that can be applied to the embodiments of the present disclosure, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, the exemplary system architecture that can be applied to the bird detection method and device in the ecological zone may include a terminal device, but the terminal device can implement the bird detection method and device in the ecological zone provided by the embodiments of the present disclosure without interacting with the server.
[0032] like Figure 1 As shown, the system architecture 100 according to this embodiment may include an image acquisition device 101, a terminal device 102, a network 103, and a server 104. The network 103 is used to provide a medium for a communication link between the image acquisition device 101, the terminal device 102, and the server 104. The network 103 may include various connection types, such as wired and / or wireless communication links, etc.
[0033] The user can use the image acquisition device 101 and the terminal device 102 to interact with the server 104 through the network 103 to receive or send messages, etc. The image acquisition device 101 can be a digital video camera, a digital camera, a monitoring device, etc. (only for example) with video and / or photo functions. The terminal device 102 can be installed with various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only for example).
[0034] The terminal device 102 may be any electronic device having a display screen and supporting web browsing, including but not limited to a television, a tablet computer, a laptop computer, a desktop computer, and the like.
[0035] Server 104 can be any type of server that provides various services. For example, server 104 can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services (Virtual Private Server). Server 104 can also be a server of a distributed system, or a server combined with a blockchain.
[0036] It should be noted that the bird detection method in the ecological zone provided by the embodiment of the present disclosure can generally be executed by the image acquisition device 101 or the terminal device 102. Accordingly, the bird detection device in the ecological zone provided by the embodiment of the present disclosure can also be set in the image acquisition device 101 or the terminal device 102.
[0037] Alternatively, the bird detection method in the ecological zone provided by the embodiment of the present disclosure may also be generally performed by the server 104. Accordingly, the bird detection device in the ecological zone provided by the embodiment of the present disclosure may generally be arranged in the server 104. The bird detection method in the ecological zone provided by the embodiment of the present disclosure may also be performed by a server or server cluster that is different from the server 104 and can communicate with the image acquisition device 101, the terminal device 102 and / or the server 104. Accordingly, the bird detection device in the ecological zone provided by the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from the server 104 and can communicate with the image acquisition device 101 or the terminal device 102 and / or the server 104.
[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of image acquisition devices, terminal devices, networks and servers may be provided according to the implementation requirements.
[0039] It should be noted that the sequence numbers of the operations in the following method are only used as representations of the operations for the purpose of description, and should not be regarded as representing the execution order of the operations. Unless explicitly stated, the method does not need to be executed completely in the order shown.
[0040] Figure 2 The flowchart of the bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown.
[0041] like Figure 2As shown, the method 200 may include performing operations S210 to S220.
[0042] In operation S210, the scene in the ecological area is collected by using the edge end intelligent device to obtain a data set of images to be detected. The data set of images to be detected includes multiple frames of image data to be detected.
[0043] In operation S220, each frame of image data in the image data set to be detected is input into a pre-trained bird recognition model to output a first target image data set. The first target image data set is characterized as image data including birds in the image data set to be detected.
[0044] According to the embodiment of the present disclosure, the edge-end intelligent device can be used to collect scenes within the ecosystem to obtain a data set of images to be detected. The edge-end intelligent device can be a combination of a camera device and a data processing device. For example, the edge-end intelligent device can be a hardware processing device that integrates a front-end high-definition camera and a computer. Multiple groups of edge-end intelligent devices can be set to obtain complete image data of the ecological zone. The data processing device can be a data processing device based on the Advanced RISC Machine (ARM) core architecture. A wireless module and a 4G module can be configured on the data processing device. The camera device and the data processing device can be connected via a network cable to achieve data communication between the two. The video data collected by the camera device can be pulled and parsed in real time by a real-time streaming protocol data pull method, and each frame of the image data to be detected after parsing is input into the data processing device. Therefore, it is possible to process the collected data in real time, avoid the delay caused by data transmission, and effectively improve the timeliness of the system. It is also possible to access the local intranet through a wireless network and transmit each frame of image data to a front-end display device for display. For example, the image data can be transmitted to a large screen in the monitoring area to achieve visual display and facilitate real-time analysis and processing.
[0045] According to an embodiment of the present disclosure, the image data set to be detected may be a data set including multiple frames of image data to be detected, the image data to be detected may include image data of birds, and may also include image data that does not contain birds in an ecological zone, the image data set to be detected may be panoramic image data in an ecological zone, and each frame of image data may be a frame of image data obtained from the panoramic image data in the ecological zone. Inputting each frame of image data into a pre-trained bird recognition model may be inputting each frame of image data of the panoramic image data in the ecological zone into the bird recognition model, and the bird recognition model may filter out each frame of image data that contains birds in the panoramic image data in the ecological zone. The scope of the ecological zone can be set according to demand, for example, it may be a scene range within 20 kilometers centered on a certain building, it may be the range of a certain park, or it may be the range of a certain wildlife protection zone.
[0046] According to the disclosed embodiment, a pre-trained bird recognition model can be constructed based on the YOLOv5 architecture. First, the training of the bird recognition model can be completed based on the COCO data set. An image data set of 1.5 million targets, 80 target categories (pedestrians, birds, airplanes, cars, etc.), and 91 material categories (grass, walls, sky, etc.) can be selected and processed twice, and all the bird data in the image data set are taken as one category, and the remaining data are taken as the second category, and the training of the bird recognition model is completed based on the processed image data set. Then, the trained model weights are loaded into the bird recognition model structure. The pre-trained bird recognition model can realize the detection of birds and the regression of the bird position data in the image.
[0047] According to an embodiment of the present disclosure, after setting an edge-end intelligent device to collect scenes in an ecological zone to obtain an image data set to be detected, each frame of image data in the image data set to be detected is input into a pre-trained bird recognition model for recognition, and the image data that does not include birds in the image data set to be detected can be filtered to obtain a first target image data set that includes birds in the image data set to be detected.
[0048] Figure 3 The flowchart of the bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown after the first target image data set is output.
[0049] like Figure 3 As shown, the method 300 may include performing operations S321 to S325.
[0050] In operation S321 , based on the multi-process technology strategy, the execution order of the bird position determination process, the bird fine-grained identification process, and the bird density estimation process is determined.
[0051] In operation S322 , the bird position determination process, the bird fine-grained recognition process, and the bird density estimation process are performed according to the execution order.
[0052] In operation S323, when the first preset number of types of birds are identified, the bird position determination process is terminated.
[0053] In operation S324, when a second preset number of types of birds are identified, the bird fine-grained identification process is terminated.
[0054] In operation S325, when the third preset number of types of birds are identified, the bird density estimation process is terminated.
[0055] According to an embodiment of the present disclosure, a multi-process technical strategy may be a strategy for determining the process of a bird detection method. The multi-process technical strategy may be used to determine the order of specific execution processes of bird detection, and may also be used to determine whether multiple processes of bird detection are executed simultaneously or separately. For example, the multi-process technical strategy may determine that the bird detection method is to first execute a bird position determination process and then execute a bird density estimation process and a bird fine-grained identification process; the multi-process technical strategy may determine that the bird detection method is to first execute a bird position determination process and a bird density estimation process and then execute a bird fine-grained identification process; the multi-process technical strategy may determine that the bird detection method is to simultaneously execute a bird density estimation process and a bird fine-grained identification process.
[0056] According to an embodiment of the present disclosure, the fine-grained bird recognition process may be an execution process for identifying the species of birds, and the species of birds may be identified based on the location data of the birds, for example, based on the coordinate position of the birds in the image data. Before executing the fine-grained bird recognition process, it may also include constructing a fine-grained recognition unit.
[0057] According to an embodiment of the present disclosure, the bird density estimation process may be an execution process for estimating the number of birds, and before executing the bird density estimation process, it may further include constructing a density estimation unit. Before executing the bird position determination process, it may further include constructing a bird position determination unit.
[0058] According to an embodiment of the present disclosure, when the multi-process technical strategy determines that the bird detection method process is to execute the bird position determination process and then simultaneously execute the bird fine-grained identification process and the bird density estimation process, the bird detection method can first enter the bird position determination unit to execute the bird position determination process, and then simultaneously enter the fine-grained identification unit and the density estimation unit to respectively execute the bird fine-grained identification process and the bird density estimation process to determine the bird species and the number of birds.
[0059] According to an embodiment of the present disclosure, when a multi-process technical strategy determines that the process of a bird detection method is to first execute a bird position determination process and a bird density estimation process and then execute a bird fine-grained recognition process, the bird detection method can first enter a bird position determination unit to execute a bird position determination process and a density estimation unit to execute a bird density estimation process, and then enter a fine-grained recognition unit to execute a bird fine-grained recognition process.
[0060] According to an embodiment of the present disclosure, the first preset number of types of birds may include at least one of the following: birds in a panoramic range within an ecological zone, a preset number of birds, a preset number of birds of a certain type, and birds in the first target image data set.
[0061] According to an embodiment of the present disclosure, the second preset number of types of birds may include at least one of the following: birds in a panoramic range within an ecological zone, a preset number of birds, a preset number of birds of a certain type, and birds in the first target image data set.
[0062] According to an embodiment of the present disclosure, the third preset number of types of birds may include at least one of the following: birds in a panoramic range within an ecological zone, a preset number of birds, a preset number of birds of a certain type, and birds in the first target image data set. The first preset number of types of birds, the second preset number of types of birds, and the third preset number of types of birds may be the same or different.
[0063] According to an embodiment of the present disclosure, ending the bird position determination process may include at least one of the following: ending the bird position determination process after determining the birds in a panoramic range within the ecological zone, ending the bird position determination process after determining a preset number of birds, ending the bird position determination process after determining a preset number of birds of a certain type, and ending the bird position determination process after determining the birds in the first target image data set.
[0064] According to an embodiment of the present disclosure, ending the execution of the fine-grained bird recognition process may include at least one of the following: ending the execution of the fine-grained bird recognition process after executing the identification of birds in a panoramic range within the ecological zone, ending the execution of the fine-grained bird recognition process after executing the identification of a preset number of birds, ending the execution of the fine-grained bird recognition process after executing the identification of a preset number of birds of a certain type, and ending the execution of the fine-grained bird recognition process after executing the determination of birds in the first target image data set.
[0065] According to an embodiment of the present disclosure, ending the bird density estimation process may include at least one of the following: ending the bird density estimation process after estimating the birds in a panoramic range within the ecological zone, ending the bird density estimation process after estimating a preset number of birds, ending the bird density estimation process after estimating a preset number of birds of a certain type, and ending the bird density estimation process after determining the birds in the first target image data set.
[0066] According to the embodiment of the present disclosure, the bird position determination process, the bird fine-grained identification process and the bird density estimation process can be executed multiple times based on the multi-process technology strategy. For example, the bird position determination process can be executed once for each bird in the first preset number of types of birds, and after the previous bird executes the bird position determination process, one of the following processes can be executed once based on the multi-process technology strategy: the bird fine-grained identification process and the bird density estimation process, and then the bird position determination process is executed for the next bird. For example, after the bird position determination process is executed for all birds in the first preset number of types of birds, one of the following processes can be executed based on the first preset number of types of birds including the bird position information: the bird fine-grained identification process and the bird density estimation process. For example, the bird fine-grained identification process and the bird density estimation process can be executed once for each frame of the first target image data in the first target image data set, that is, how many frames of the first target image data perform the relative number of bird fine-grained identification processes and bird density estimation processes. For example, the bird fine-grained identification process and the bird density estimation process are executed once for each bird in each frame of the first target image data in the first target image data set, that is, how many birds perform the relative number of bird fine-grained identification processes and bird density estimation processes. For example, a bird location determination process and a bird density estimation process may be performed simultaneously.
[0067] According to an embodiment of the present disclosure, when it is determined to terminate the execution of the bird position determination process, the bird fine-grained identification process and the bird density estimation process, the bird position determination process, the bird fine-grained identification process and the bird density estimation process can be destroyed respectively after obtaining the position data, species data and quantity data.
[0068] According to an embodiment of the present disclosure, the method may further include performing the following operations before operation S322.
[0069] Based on the multi-process technical strategy, a multi-process shared list is established, wherein the multi-process shared list includes a bird location list, a bird density list and a bird species list.
[0070] According to an embodiment of the present disclosure, a data transmission unit can be constructed, and based on a multi-process technical strategy, a data transmission process can be set to be executed simultaneously with at least one of a bird position determination process, a bird fine-grained identification process, and a bird density estimation process, so that while executing the bird position determination process, the bird fine-grained identification process, and the bird density estimation process, result graphs of the bird position data, quantity data, and species data can be saved respectively, and the result graph saved can include at least one of the following: a predicted bird flock density map and a predicted bird flock species map.
[0071] According to an embodiment of the present disclosure, the bird position list can be used to store the output bird position data when executing the bird position determination process until the bird position determination process is terminated. For example, the bird position list can be marked as a shared list with an index of 0, and when executing the bird position determination process, the output position data can be stored in the shared list with an index of 0.
[0072] According to an embodiment of the present disclosure, a bird density list can be used to store the outputted bird quantity data until the bird density estimation process is terminated when the bird density estimation process is executed. For example, the bird density list can be marked as a shared list with an index of 1, and when the bird density estimation process is executed, the outputted quantity data can be stored in the shared list with an index of 1. When the bird density estimation process is executed, the predicted bird population density map can be generated based on the outputted quantity data and stored in the shared list with an index of 1 by traversing the contents in the shared list with an index of 0 until the bird density estimation process is terminated.
[0073] According to an embodiment of the present disclosure, a bird species list can be used to store the output bird species data until the fine-grained bird identification process is completed when executing the fine-grained bird identification process. For example, the bird species list can be marked as a shared list with an index of 2. When executing the fine-grained bird identification process, the content in the shared list with an index of 0 can be traversed until the fine-grained bird identification process is completed. A predicted bird species map can be generated based on the output species data and stored in the shared list with an index of 2. Whether the image data of the current frame has been stored can be determined by detecting whether the multi-process shared list is cleared. If the storage is completed, the next frame of image data can be processed.
[0074] Figure 4 The flowchart schematically shows a process of determining the bird position of the bird detection method in an ecological zone according to an embodiment of the present disclosure.
[0075] like Figure 4 As shown, the method 400 may include performing operations S421 to S422.
[0076] In operation S421, each frame of image data in the first target image data set is input into a pre-trained bird recognition model, and position data of the bird in the image data is output.
[0077] In operation S422, the image data is marked according to the position data of the bird in the image data to obtain a second target image data set.
[0078] According to an embodiment of the present disclosure, each frame of image data in the first target image data set is input into a pre-trained bird recognition model, and the bird recognition model can output the position data of the bird in each frame of image data containing the bird. According to the output position data of the bird in the image data, the position data of the bird in the image data is marked, and a second target image data set with bird position data can be obtained. The second target image data set can be the first target image data set with added bird position information, for example, the number of frames of image data and the number of birds in the first target image data set are the same as those in the second target image data set. The second target image data set can also be an image data set by extracting each bird in the first target image data set and taking each bird as a frame of image data. For example, the first target image data set includes 2 frames of image data, each of which includes 5 birds, and the corresponding second target image data set can include 10 frames of image data, each of which includes 1 bird. The birds in the second target image data set can be the same as or different from the birds of the first preset number type, the second preset number type, and the third preset number type.
[0079] According to an embodiment of the present disclosure, the position data may be position data in the image data, and the position data may be the coordinate position of the bird in the image data, for example, the upper left corner position (X, Y) is (35, 50), and the lower right corner position (X, Y) is (70, 100).
[0080] According to an embodiment of the present disclosure, the second target image data set may be a set of multi-frame image data including a preset number of bird position data, and the second target image data set may be a set of multi-frame image data including all bird position data in a panoramic view of an ecological zone. The birds in the second target image data set may include at least one of the following: birds in a panoramic range of an ecological zone, a preset number of birds, a preset number of birds of a certain type, and birds in the first target image data set.
[0081] According to an embodiment of the present disclosure, operation S322 may further include the following operations when executing the bird fine-grained identification process.
[0082] The second target image dataset is input into a pre-trained fine-grained model to obtain the species data of the birds in the second target image dataset.
[0083] According to an embodiment of the present disclosure, a pre-trained fine-grained model can be constructed based on the Resnet18 architecture. First, the training of the fine-grained model can be completed based on the CUB_200_2011 bird fine-grained recognition dataset, where the dataset can be a dataset including 200 species of birds, for example, 11,788 images of 200 species of birds. Then, the trained model weights can be loaded into the fine-grained model structure. The pre-trained fine-grained model can output high-confidence bird species data based on the feature data of the bird. The feature data of the bird may include at least one of the color features, claw features, feather features, and volume features of the bird.
[0084] According to an embodiment of the present disclosure, the fine-grained bird recognition process can be to identify the species of birds based on the location data of the birds. The pre-trained fine-grained model can intercept the bird data of the corresponding position through the position data marked in the second target image data set, and then identify the species of the bird at the marked position.
[0085] According to an embodiment of the present disclosure, operation S322 may further include the following operations when executing the bird density estimation process.
[0086] Each frame of image data in the first target image data set is input into a pre-trained first density model, and a bird flock density map corresponding to the first target image data set is output.
[0087] According to an embodiment of the present disclosure, after outputting the bird flock density map corresponding to the first target image data set, the method further includes transmitting the bird flock density map to a front-end display device for display using a local area network. The bird flock density map includes quantity data and bird identification.
[0088] According to an embodiment of the present disclosure, a pre-trained first density model can be constructed based on the CSRNet architecture. First, the first density model is trained based on the Bird-Count bird flock density estimation data set. Then, the trained model weights can be loaded into the first density model structure. The trained first density model can output a bird flock density map and bird quantity data.
[0089] According to an embodiment of the present disclosure, the bird recognition model, the fine-grained model and the first density model can be decomplexed based on an 8-bit network quantization scheme and a model compression scheme (quantization, pruning), and the precision of the weights can be quantized to INT8.
[0090] According to an embodiment of the present disclosure, the bird density estimation process may be performed by collecting scenes in the ecological zone by an edge-end intelligent device to obtain an image data set to be detected and inputting it into a pre-trained first density model to obtain the number data of birds in the ecological zone.
[0091] Figure 5 The flowchart of the bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown after obtaining the position data and the species data.
[0092] like Figure 5 As shown, the method 500 may include performing operations S521 to S522.
[0093] In operation S521, a bird flock type map is generated based on the position data and type data of the birds. The bird flock type map includes the position data and type data of all birds in the second preset number type.
[0094] In operation S522, the bird species map is transmitted to a front-end display device for display via a local area network.
[0095] According to an embodiment of the present disclosure, the birds in the first target image data set, the birds in the second target image data set, the birds of the first preset number type, the birds of the second preset number type, and the birds of the third preset number type may be the same or different. In the case where the birds in the first target image data set, the birds in the second target image data set, the birds of the first preset number type, and the birds of the second preset number type are the same, the bird flock species map may be a map including the position data and species data of all the birds in the first target image data set, for example, the position data and species data of the birds are superimposed in a map in the form of a border and text, such as Figure 6 As shown, it may also be a data set of multiple images including the position data and species data of all birds in the first target image data set.
[0096] According to an embodiment of the present disclosure, when the birds in the first target image data set, the birds in the second target image data set, the birds of the first preset number type, and the birds of the third preset number type are the same, the bird flock density map may be a map including the bird identification and quantity data of all the birds in the first target image data set, and the bird identification may be the expression of the birds in the image data in a certain form, such as Figure 7 As shown, the white spot in the upper right corner can be a bird identifier, and the location of the white spot is the location of the bird. It can also be a data set including multiple images of bird identifiers and quantity data of all birds in the first target image data set. The quantity data of birds can be represented by the total number of birds in the first target image data set, or by the total number of birds in the current image. The bird species map and the bird density map can be saved in the edge device.
[0097] Figure 8 The block diagram of a bird detection device in an ecological zone according to an embodiment of the present disclosure is schematically shown.
[0098] like Figure 8As shown, the bird detection device 800 in the ecological zone may include a first obtaining module 810 and a first output module 820 .
[0099] The first obtaining module 810 is used to collect scenes in the ecological area using edge-end intelligent devices to obtain a data set of images to be detected, wherein the data set of images to be detected includes multiple frames of image data to be detected.
[0100] The first output module 820 is used to input each frame of image data in the image data set to be detected into a pre-trained bird recognition model, and output a first target image data set, where the first target image data set is characterized as image data including birds in the image data set to be detected.
[0101] According to the embodiments of the present disclosure, the problems of difficulty, time-consuming and low accuracy in manual monitoring can be effectively solved. At the same time, the problems of incomplete monitoring data, large network bandwidth and difficulty in real-time processing in the current smart bird monitoring scheme can be improved.
[0102] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, including: one or more processors and a memory configured to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0103] Fig. 9 A block diagram of an electronic device suitable for implementing the above-mentioned bird detection method in an ecological zone according to an embodiment of the present disclosure is schematically shown. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0104] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0105] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0106] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The system 900 may further include one or more of the following components connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0107] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0108] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0109] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0110] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 902 and / or the RAM 903 described above and / or one or more memories other than the ROM 902 and the RAM 903 .
[0111] The embodiments of the present disclosure also include a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiments of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the above method provided by the embodiments of the present disclosure.
[0112] When the computer program is executed by the processor 901, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0113] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0114] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedures and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, Python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0116] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for detecting birds in an ecological zone, characterized in that: include: Using edge-end intelligent devices to collect scenes in the ecological zone to obtain a data set of images to be detected, wherein the data set of images to be detected includes multiple frames of image data to be detected; Input each frame of the image data in the image data set to be detected into a pre-trained bird recognition model, and output a first target image data set, wherein the first target image data set is characterized as image data including birds in the image data set to be detected; Based on the multi-process technology strategy, the execution order of the bird position determination process, the bird fine-grained identification process and the bird density estimation process is determined; Execute the bird position determination process, the bird fine-grained identification process, and the bird density estimation process according to the execution order; When a first preset number of types of birds are identified, the bird location determination process is terminated; When a second preset number of types of birds are identified, the bird fine-grained identification process is terminated; and In the case where the third preset number of types of birds are identified, the bird density estimation process is terminated, and the bird density estimation process is executed, comprising: Input each frame of image data in the first target image data set into a pre-trained density model, and output a bird flock density map corresponding to the first target image data set, wherein the bird flock density map is a map including bird identification and quantity data of all birds in the first target image data set, wherein the bird identification represents the bird, and the position of the bird identification represents the position of the bird.
2. The method according to claim 1, characterized in that Before executing the bird position determination process, the bird fine-grained identification process and the bird density estimation process according to the execution order, the method further includes: Based on the multi-process technical strategy, a multi-process sharing list is established, wherein the multi-process sharing list includes a bird location list, a bird density list and a bird species list; The bird position list is used to store the outputted bird position data when the bird position determination process is executed until the execution of the bird position determination process is terminated; The bird density list is used to store the outputted bird quantity data until the execution of the bird density estimation process ends when the bird density estimation process is executed; The bird species list is used to store the output bird species data when the bird fine-grained identification process is executed until the execution of the bird fine-grained identification process is completed.
3. The method according to claim 2, characterized in that The step of executing the bird position determination process comprises: Inputting each frame of the image data in the first target image data set into a pre-trained bird recognition model, and outputting the position data of the bird in the image data; and The image data is marked according to the position data of the bird in the image data to obtain a second target image data set.
4. The method according to claim 3, characterized in that: The step of executing the bird fine-grained identification process includes: The second target image data set is input into a pre-trained fine-grained model to obtain the species data of the birds in the second target image data set.
5. The method according to claim 1, characterized in that After outputting the bird flock density map corresponding to the first target image data set, the method further includes: The bird flock density map is transmitted to a front-end display device for display by using a local area network, wherein the bird flock density map includes the quantity data and bird identifications.
6. The method according to claim 4, characterized in that After obtaining the location data and type data, the method further includes: generating a bird flock species map based on the position data and species data of the birds, wherein the bird flock species map includes the position data and species data of all the birds in the second target image data set; and The bird species map is transmitted to the front-end display device for display via the local area network.
7. A bird detection device in an ecological zone, characterized in that: include: A first obtaining module is used to collect scenes in the ecological area by using an edge-end intelligent device to obtain a data set of images to be detected, wherein the data set of images to be detected includes multiple frames of image data to be detected; and A first output module is used to input each frame of the image data in the image data set to be detected into a pre-trained bird recognition model, and output a first target image data set, wherein the first target image data set is characterized as image data including birds in the image data set to be detected; Based on the multi-process technology strategy, the execution order of the bird position determination process, the bird fine-grained identification process and the bird density estimation process is determined; Execute the bird position determination process, the bird fine-grained identification process, and the bird density estimation process according to the execution order; When a first preset number of types of birds are identified, the bird location determination process is terminated; When a second preset number of types of birds are identified, the bird fine-grained identification process is terminated; and In the case where the third preset number of types of birds are identified, the bird density estimation process is terminated, and the bird density estimation process is executed, comprising: Input each frame of image data in the first target image data set into a pre-trained density model, and output a bird flock density map corresponding to the first target image data set, wherein the bird flock density map is a map including bird identification and quantity data of all birds in the first target image data set, wherein the bird identification represents the bird, and the position of the bird identification represents the position of the bird.
8. An electronic device, characterized in that: include: one or more processors; a memory configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Bird condition detection method and device, computer equipment and storage medium
CN111709374A
Bird identification method and device, computer equipment and storage medium
CN111709421A
Bird somnolence rhythm detection method and device, terminal equipment and storage medium
CN112396033A
Second-order feature-based bird fine granularity identification method
CN113076861A
Cited By
Bird management method and management system based on electric power image detection
CN119649413A
