Inference deployment method and system for longjiang river dolphin target detection

By automatically collecting and segmenting videos from the Yangtze River, combining GPU hardware decoding and background modeling to filter moving targets, and using batch processing inference and acceleration engines, the problem of numerous invalid frames and low inference efficiency in long-term monitoring videos was solved, achieving efficient, automated, and visualized Yangtze finless porpoise target detection.

CN123182264APending Publication Date: 2026-11-27SHANGHAI OCEAN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611286059.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies suffer from numerous invalid frames, low inference efficiency, and inconvenient manual management in long-term surveillance videos, leading to wasted computing resources and insufficient monitoring efficiency.

Method used

By automatically acquiring and segmenting video based on a set detection time range, combining GPU hardware decoding and frame extraction preprocessing, using Gaussian mixture background modeling for moving target pre-screening, and using a preceding frame buffer queue and batch processing inference to accelerate the engine for target detection, automated and efficient Yangtze finless porpoise target detection is achieved.

Benefits of technology

It enables automated processing of long-term surveillance videos, improves video reading and image processing efficiency, reduces invalid inferences, lowers computational resource consumption, reduces the risk of missed detections, and improves the efficiency and resource utilization of target detection, achieving full-process automation and visualization management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182264A_ABST
    Figure CN123182264A_ABST
Patent Text Reader

Abstract

The application discloses a kind of inference deployment methods and systems for Yangtze finless porpoise target detection, belong to computer vision and intelligent video analysis technical field. Including: based on the detection time range set, real-time acquisition Yangtze water area video to be detected, and according to the preset time length to the video to be detected segmentation;For each segment video to be detected decoding, frame extraction and image preprocessing, obtain the image sequence to be detected;For each segment the image sequence to be detected is pre-screened, filters no target or stationary scene, only retains the image that satisfies detection condition;Each image that satisfies detection condition is according to the preset batch quantity to form inference data, constructs inference data batch processing set, and is inputed into the preset finless porpoise target detection model one by one and carries out batch inference, obtains the position, class and confidence information of each batch finless porpoise target.The application solves the problem that invalid frame is more in long time monitoring video, inference efficiency is low and artificial management is inconvenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and intelligent video analysis technology, and in particular to an inference deployment method and system for target detection of finless porpoises in the Yangtze River. Background Technology

[0002] The Yangtze finless porpoise is an important aquatic wild animal in my country, and continuous monitoring of it is of great significance for ecological protection and population research. Current monitoring methods mainly rely on manual patrols or manual video analysis, which suffer from problems such as high workload, low efficiency, and insufficient continuous monitoring capabilities.

[0003] With the development of target detection technology, it has become possible to automatically identify finless porpoises in videos using deep learning models. However, in actual surveillance videos, a large number of video frames do not contain finless porpoises. Directly performing target detection inference on all video frames would waste computational resources and reduce the efficiency of long-term video processing. Therefore, a method and system for deploying finless porpoise target detection that can automatically acquire video, filter out invalid frames, and perform efficient inference is needed. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention aims to provide an inference deployment method and system for detecting finless porpoises in the Yangtze River basin, thereby solving the problems of numerous invalid frames, low inference efficiency, and inconvenience in manual management in long-term monitoring videos.

[0005] To achieve the above objectives, this invention provides an inference deployment method for target detection of finless porpoises in the Yangtze River, comprising the following steps: (1) Based on the set detection time range, collect the video of the Yangtze River water area to be detected in real time, and divide the video of the to be detected into segments according to the preset time length; (2) Decode, extract frames and preprocess images for each video segment to be detected to obtain the image sequence to be detected; (3) Perform pre-screening of moving targets for each segment of the image sequence to be detected, filter out no targets or static scenes, and retain only images that meet the detection conditions; (4) Each image that meets the detection conditions is combined into inference data according to the preset batch processing quantity, and the inference data batch processing set is constructed. Then, the images are input into the preset finless porpoise target detection model one by one for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets.

[0006] Furthermore, step (1) specifically involves: using a network video surveillance device connected via communication, automatically acquiring the video to be detected according to the set start and end times, and automatically segmenting it according to the preset time length.

[0007] Furthermore, the motion target pre-screening involves obtaining a foreground mask of the current image using Gaussian mixture background modeling, binarizing it, performing morphological processing and contour extraction, and determining whether there is a valid motion target based on the contour features; when there is no valid motion target, the current image is filtered; when there is a valid motion target, the current image is an image that meets the detection conditions.

[0008] Furthermore, in step (3), a preceding frame cache queue is set up. When the current image meets the pre-screening conditions for moving targets, the current image and its preceding cached image are added together to the data to be inferred, so as to reduce the probability of missed detection in the scenario of finless porpoises emerging from the water for a short time.

[0009] Furthermore, in step (4), each image that meets the detection conditions is combined into inference data according to a preset batch processing quantity. When the number of images in the last batch is less than the preset batch processing quantity, the batch processing data is constructed by padding.

[0010] Furthermore, the finless porpoise target detection model is deployed in an inference acceleration engine and combines GPU computing and half-precision computing to complete target detection inference.

[0011] Furthermore, it also includes: generating detection images and detection records based on the inference results, and completing the storage of detection results, recording of operation logs, and management of status information.

[0012] Furthermore, the detection results, operation logs, and status information are automatically saved, and the system selects whether to delete video files that have completed inference based on configuration parameters.

[0013] Furthermore, the inference deployment method can be configured and displayed through a graphical interface, supporting detection time setting, video segmentation parameter configuration, detection category configuration, detection task start and stop control, operation log display, operation status monitoring, and detection result management.

[0014] This invention also provides an inference deployment system for target detection of finless porpoises in the Yangtze River, comprising: The video acquisition module is used to establish a communication connection with the video acquisition device and to acquire videos of the Yangtze River basin to be detected in real time based on a set detection time range. The video management module is used to segment the video to be tested according to a preset time length, and to manage its storage, caching, and files. The video preprocessing module is used to decode, extract frames, and preprocess images for each video segment to be detected, in order to obtain the image sequence to be detected. The moving target pre-screening module is used to pre-screen moving targets for each segment of the image sequence to be detected, filtering out no targets or static scenes, and retaining only images that meet the detection conditions. The batch processing construction and target detection module is used to combine each image that meets the detection conditions into inference data according to the preset batch processing quantity, construct the inference data batch processing set, and input them one by one into the preset finless porpoise target detection model for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets. The detection result storage and log recording module is used to generate detection images and detection records based on the inference results, and to complete the storage of detection results, recording of operation logs and management of status information; The graphical interaction module is used to complete parameter configuration, task control, running status display and result management.

[0015] The beneficial effects of this invention are: (1) By automatically acquiring and segmenting video, the automated processing of long-term monitoring videos can be achieved, reducing manual operation.

[0016] (2) Improve video reading and image processing efficiency through GPU hardware decoding and frame extraction preprocessing.

[0017] (3) By pre-screening moving targets based on background modeling, the number of targetless or still image frames entering the target detection model is reduced, thereby reducing the number of invalid inferences and the consumption of computing resources.

[0018] (4) By using the preceding frame caching mechanism, the risk of missed detection caused by the pre-screening trigger delay in the short-term water emergence scenario of finless porpoises is reduced.

[0019] (5) Improve GPU resource utilization and target detection efficiency by deploying batch inference and inference acceleration engines.

[0020] (6) The entire process of detecting finless porpoises is automated, visualized, and engineered through the storage of detection results, logging, status management, and graphical interactive control. Attached Figure Description

[0021] Figure 1 This is a schematic diagram of the inference deployment method for target detection of finless porpoises in the Yangtze River according to an embodiment of the present invention. Detailed Implementation

[0022] The present invention will be further explained and described below with reference to the accompanying drawings and embodiments.

[0023] like Figure 1 As shown, this embodiment provides an inference deployment method for target detection of finless porpoises in the Yangtze River, including the following steps: S101. Based on the set detection time range, collect the video of the Yangtze River to be detected in real time, and segment the video of the to be detected according to the preset time length.

[0024] First, establish a communication connection with the video acquisition device (network video surveillance device). Read the device connection parameters (device address, port number, username, password, and channel number) to establish a communication connection with the network video surveillance device, and automatically acquire video data according to the set start time, end time, and video segment duration. The acquired videos are saved to the local directory in date and time order, and can be cached and deleted according to the configuration.

[0025] S102. Decode, extract frames and preprocess images for each video segment to be detected to obtain the image sequence to be detected.

[0026] The system reads the video to be detected, decodes it using GPU hardware, and extracts image frames at a set frame extraction interval. The images are then resized, converted in color space, and converted in data format to meet the input requirements of the Yangtze finless porpoise target detection model.

[0027] S103. Perform pre-screening of moving targets for each segment of the image sequence to be detected, filtering out no targets or static scenes, and retaining only images that meet the detection conditions.

[0028] Gaussian mixture background modeling is used to obtain the foreground mask of the current image, which is then binarized, morphologically processed, and contour extracted. The presence of a valid moving target is determined based on the contour features. When no valid moving target is found (no target or static scene), the current image is filtered out. When a valid moving target is found, the current image is considered to meet the detection criteria.

[0029] Furthermore, the system sets up a preceding frame buffer queue. When the current image passes the pre-screening, several frames preceding the current image are added to the data to be inferred.

[0030] S104. Each image that meets the detection conditions is combined into inference data according to the preset batch processing quantity, and an inference data batch processing set is constructed. The data is then input into the preset finless porpoise target detection model one by one for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets.

[0031] Images meeting the detection criteria are grouped into inference data according to a preset batch size. When the number of images in the last batch is insufficient to meet the preset batch size, padding is used to construct the new batch data. The inference data is then input one by one into the deployed finless porpoise target detection model for inference. The target detection model is deployed in the inference acceleration engine, where batch inference is performed via GPU, and the location, category, and confidence information of the finless porpoise target are output.

[0032] S105. Generate detection images and detection records based on the reasoning results, and complete the storage of detection results, recording of operation logs, and management of status information.

[0033] Based on the inference results, images with detection bounding boxes are generated, and the detected images and detection records are automatically saved. Simultaneously, the video processing status, the number of detection results, runtime, and anomaly information are recorded, generating runtime logs and status files, which are then automatically saved.

[0034] Choose whether to delete video files that have completed inference based on the configuration parameters.

[0035] S106, Graphical Interactive Management.

[0036] Users can set detection time, video segmentation parameters, detection categories, and operating parameters through a graphical user interface, and can start or stop detection tasks. The system displays the operating status, operation time, real-time logs, and detection results on the interface, realizing visualized management of the entire process of finless porpoise target detection.

[0037] This invention also provides an inference deployment system for detecting finless porpoises in the Yangtze River, comprising: The video acquisition module is used to establish a communication connection with the video acquisition device and to acquire videos of the Yangtze River basin to be detected in real time based on a set detection time range.

[0038] The video management module is used to segment the video to be tested according to a preset time length, and to manage its storage, caching, and files.

[0039] The video preprocessing module is used to decode, extract frames, and preprocess images for each video segment to be detected, thereby obtaining the image sequence to be detected.

[0040] The moving target pre-screening module is used to pre-screen moving targets for each segment of the image sequence to be detected, filtering out no targets or static scenes, and retaining only images that meet the detection conditions.

[0041] The batch processing and target detection module is used to combine each image that meets the detection conditions into inference data according to a preset batch processing quantity, construct an inference data batch processing set, and input it one by one into the preset finless porpoise target detection model for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets.

[0042] The detection result storage and log recording module is used to generate detection images and detection records based on the inference results, and to complete the storage of detection results, recording of operation logs and management of status information.

[0043] The graphical interaction module is used to complete parameter configuration, task control, running status display and result management.

[0044] The embodiments described above are only used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Various modifications, equivalent substitutions, or variations made by those skilled in the art to the present invention without departing from the spirit and substance of the present invention should fall within the scope of protection defined by the claims of the present invention.

Claims

1. A reasoning and deployment method for target detection of finless porpoises in the Yangtze River basin, characterized in that, Includes the following steps: (1) Based on the set detection time range, collect the video of the Yangtze River water area to be detected in real time, and divide the video of the to be detected into segments according to the preset time length; (2) Decode, extract frames and preprocess images for each video segment to be detected to obtain the image sequence to be detected; (3) Perform pre-screening of moving targets for each segment of the image sequence to be detected, filter out no targets or static scenes, and retain only images that meet the detection conditions; (4) Each image that meets the detection conditions is combined into inference data according to the preset batch processing quantity, and the inference data batch processing set is constructed. Then, the images are input into the preset finless porpoise target detection model one by one for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets.

2. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that, The specific steps (1) are as follows: through the communication connection network video monitoring equipment, the video to be detected is automatically acquired according to the set start time and end time, and the video to be detected is segmented according to the preset time length.

3. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that: The motion target pre-screening process involves obtaining a foreground mask of the current image using Gaussian mixture background modeling, binarizing it, performing morphological processing and contour extraction, and determining whether there is a valid motion target based on the contour features. If there is no valid motion target, the current image is filtered out. If there is a valid motion target, the current image is considered to meet the detection conditions.

4. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that: In step (3), a preceding frame cache queue is set up. When the current image meets the pre-screening conditions for moving targets, the current image and its preceding cached image are added together to the data to be inferred, so as to reduce the probability of missed detection in the scenario of finless porpoises emerging from the water for a short time.

5. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that: In step (4), each image that meets the detection conditions is combined into inference data according to a preset batch processing quantity. When the number of images in the last batch is less than the preset batch processing quantity, the batch processing data is constructed by padding.

6. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that: The finless porpoise target detection model is deployed in the inference acceleration engine and combines GPU computing and half-precision computing to complete target detection inference.

7. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 1, characterized in that, Also includes: Based on the reasoning results, detection images and detection records are generated, and the detection results are stored, operation logs are recorded, and status information is managed.

8. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 7, characterized in that: The detection results, operation logs, and status information are automatically saved, and the video files that have completed inference can be deleted according to the configuration parameters.

9. The inference deployment method for target detection of finless porpoises in the Yangtze River basin according to claim 7, characterized in that, The inference deployment method can be configured and displayed through a graphical user interface, supporting detection time setting, video segmentation parameter configuration, detection category configuration, detection task start and stop control, operation log display, operation status monitoring, and detection result management.

10. A reasoning and deployment system for target detection of finless porpoises in the Yangtze River basin, characterized in that, include: The video acquisition module is used to establish a communication connection with the video acquisition device and to acquire videos of the Yangtze River basin to be detected in real time based on a set detection time range. The video management module is used to segment the video to be tested according to a preset time length, and to manage its storage, caching, and files. The video preprocessing module is used to decode, extract frames, and preprocess images for each video segment to be detected, in order to obtain the image sequence to be detected. The moving target pre-screening module is used to pre-screen moving targets for each segment of the image sequence to be detected, filtering out no targets or static scenes, and retaining only images that meet the detection conditions. The batch processing construction and target detection module is used to combine each image that meets the detection conditions into inference data according to the preset batch processing quantity, construct the inference data batch processing set, and input them one by one into the preset finless porpoise target detection model for batch inference to obtain the location, category and confidence information of each batch of finless porpoise targets. The detection result storage and log recording module is used to generate detection images and detection records based on the inference results, and to complete the storage of detection results, recording of operation logs and management of status information; The graphical interaction module is used to complete parameter configuration, task control, running status display and result management.