Scene target detection method and device based on visual saliency model

By constructing the residual block and multi-scale feature fusion steps between the convolutional neural network and the multi-layer perceptron, the initial saliency model is constructed and optimized, which solves the problems of high false detection rate and poor robustness of traditional algorithms in complex scenes. , improving the accuracy and adaptability of target detection.

CN118657931AActive Publication Date: 2024-09-17XIAN LINGKONG ELECTRONICS TECH CO LTD

Patent Information

Application Number
CN202411067902.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-17
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

In complex and changeable simulated training battlefield scenarios, traditional saliency detection algorithms have problems such as high false detection rate and poor robustness. Especially when the target is occluded, the background is highly similar to the target, and the lighting conditions change greatly, the detection performance decreases significantly. decline and cannot adapt to different environments and scene changes.

Method used

A scene target detection method based on the visual saliency model is adopted. By constructing a residual block between the convolutional neural network and the multi-layer perceptron, the residual connection is introduced, combined with the multi-scale feature fusion step, an initial saliency model is constructed, and Evaluation and optimization are performed on the validation set to obtain the final saliency model.

Benefits of technology

It improves the accuracy and robustness of target detection, reduces false detections and missed detections, enhances the model's adaptability to complex environments, and ensures high detection performance under different scenarios and conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657931A
    Figure CN118657931A
Patent Text Reader

Abstract

The invention discloses a scene target detection method and device based on a visual saliency model, and relates to the technical field of image processing, and the method comprises the steps: collecting an image in a scene, carrying out the position and category labeling of a target in the image, and constructing a data set; defining a detection target and setting a constraint condition; according to a detection target and a constraint condition, constructing a residual block between the convolutional neural network and the multi-layer perceptron to introduce residual connection, and constructing an initial saliency model; acquiring output data of the residual block as input data of the multi-layer perceptron; outputting a first prediction result of the initial saliency model through an output layer of the multi-layer perceptron; and training the initial saliency model by using the data set, and evaluating and optimizing the performance of the initial saliency model on the verification set so as to obtain a final saliency model. The problem that a traditional algorithm is high in false detection rate and poor in robustness in a complex and changeable scene of a simulated training battlefield is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a scene target detection method and device based on a visual saliency model. Background Art

[0002] In the complex and ever-changing simulated training battlefield scenarios, efficiently and accurately extracting and identifying key targets in scene images has become an important foundation for intelligent equipment.

[0003] Traditional saliency detection algorithms mainly rely on the underlying features of the image, such as color, brightness, and texture, and detect salient areas in the image by simulating the attention mechanism of the human visual system. The simulated training battlefield scene is a dynamically changing environment, where the location, shape, and even existence of the target may change at any time, requiring the algorithm to have a high degree of real-time and adaptability.

[0004] However, in the complex and ever-changing simulated training battlefield scenes, traditional algorithms often have problems such as high false detection rate and poor robustness. In particular, when the target is occluded, the background and target are highly similar, and the lighting conditions change greatly, the detection performance of traditional algorithms will drop significantly, resulting in low saliency values ​​of traditional saliency detection algorithms in complex images and inability to adapt to different environments and scene changes. Summary of the invention

[0005] In an embodiment of the present application, a scene target detection method based on a visual saliency model is provided to solve the problem that traditional algorithms often have a high false detection rate and poor robustness in complex and changeable simulated training battlefield scenes. In particular, when the target is occluded, the background and the target are highly similar, and the lighting conditions change greatly, the detection performance of the traditional algorithm will be greatly reduced, resulting in the traditional saliency detection algorithm having a low saliency value in complex images and being unable to adapt to different environments and scene changes.

[0006] In a first aspect, an embodiment of the present application provides a scene target detection method based on a visual saliency model, the method comprising: collecting images in a scene, annotating the positions and categories of targets in the images, and constructing a data set; defining detection targets and setting constraints; constructing a residual block between a convolutional neural network and a multilayer perceptron according to the detection targets and constraints to introduce residual connections and construct an initial saliency model; obtaining output data of the residual block as input data of the multilayer perceptron; outputting a first prediction result of the initial saliency model through an output layer of the multilayer perceptron; wherein the first prediction result is used to distinguish between salient areas and non-salient areas of the image; training the initial saliency model using the data set, and evaluating and optimizing the performance of the initial saliency model on a validation set, thereby obtaining a final saliency model.

[0007] In one possible implementation, a residual block is constructed between a convolutional neural network and a multi-layer perceptron according to the detection target and constraints to introduce a residual connection, including: defining a main path function and a shortcut function; adding the output of the main path function to the output of the shortcut function to obtain output data of the residual block to introduce a residual connection.

[0008] In a possible implementation, the main path function is used to receive input data and output a feature map after subjecting the input data to multiple operations; the multiple operations include convolution operations, batch normalization operations, and nonlinear activation function operations.

[0009] In a possible implementation, the input data of the shortcut function is the same as the input data of the main path function; a weight matrix is ​​introduced, and the input data is multiplied by the weight matrix to obtain the output of the shortcut function.

[0010] In a possible implementation manner, the method further includes: introducing a multi-scale feature fusion step in the residual block.

[0011] In a possible implementation, the multi-scale feature fusion step includes: using multiple convolution kernels of different scales to perform convolution operations on input data in the main path function to generate feature maps of multiple scales; performing non-uniform segmentation operations on the generated feature maps of each scale to segment them into multiple interest regions of different scales and shapes, so that each feature map has multiple interest regions; determining the relative position of each interest region on the feature map of the same scale, and mapping them to their respective feature maps; taking the center point of each interest region on the feature map as the center, extracting a small area around the center point as the mapped feature map; performing a convolution operation on each mapped feature map to generate a new feature map with the same number as the interest regions; performing a fusion operation on multiple new feature maps to generate a final feature map; using the final feature map as input data of a multi-layer perceptron; outputting a second prediction result of the initial saliency model through the output layer of the multi-layer perceptron; wherein the second prediction result is used to distinguish between salient areas and non-salient areas of the image.

[0012] In a possible implementation, the performance of the initial saliency model is evaluated and optimized on a validation set to obtain a final saliency model, including: in an equipment intelligent algorithm experimental tool, designing evaluation indicators and constructing representative scenarios as simulation scenarios; wherein the evaluation indicators include detection accuracy, detection false alarm rate, detection missed alarm rate, and processing speed, and the representative scenarios include scenarios that can cover different environmental conditions, different target types, and different detection difficulties; loading the simulation scenario and the initial saliency model in a virtual independent operation environment, conducting simulation experiments, and collecting and storing experimental data in real time; after the experiment, evaluating and analyzing the collected experimental data, and adjusting and optimizing the initial saliency model according to the evaluation and analysis results, thereby obtaining a final saliency model.

[0013] In a second aspect, an embodiment of the present application provides a scene target detection device based on a visual saliency model, the device comprising: a collection module, used to collect images in the scene, mark the positions and categories of targets in the images, and construct a data set; a definition module, used to define the detection target and set constraints; a construction module, used to construct a residual block between a convolutional neural network and a multi-layer perceptron according to the detection target and the constraints, so as to introduce a residual connection and construct an initial saliency model; an acquisition module, used to obtain the output data of the residual block as input data of the multi-layer perceptron; an output module, used to output a first prediction result of the initial saliency model through the output layer of the multi-layer perceptron; wherein the first prediction result is used to distinguish between salient areas and non-salient areas of the image; an optimization module, used to train the initial saliency model using the data set, and evaluate and optimize the performance of the initial saliency model on a validation set, so as to obtain a final saliency model.

[0014] In a third aspect, an embodiment of the present application provides a scene object detection server based on a visual saliency model, comprising a memory and a processor; the memory is used to store computer-executable instructions; the processor is used to execute the computer-executable instructions to implement the method described in the first aspect or any possible implementation method of the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores executable instructions, and when a computer executes the executable instructions, the method described in the first aspect or any possible implementation method of the first aspect can be implemented.

[0016] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects: The embodiment of the present application provides a scene target detection method based on a visual saliency model, which makes the model focus more on the key targets in the scene during the training process by clarifying the detection target and setting constraints. It helps to improve the recognition accuracy of the model for key targets, reduce false detection and missed detection, and thus improve the accuracy of overall detection. The model is trained using a data set containing rich image data and its precise position and category annotations, so that the model can learn more diverse feature representations, so that it can still maintain high detection performance in different scenes and complex environments. The residual block is introduced between the convolutional neural network and the multi-layer perceptron, and the gradient disappearance or explosion problem in the deep network training is effectively alleviated through the residual connection, which not only speeds up the training speed of the model, but also enables the model to process image data faster in the reasoning stage, thereby improving the detection efficiency. The output layer of the multi-layer perceptron distinguishes the salient and non-salient areas of the image, so that the model can automatically learn and identify the most representative areas in the image, providing more accurate prior information for subsequent target detection, and further optimizing the effect of target detection. The constructed model framework has good flexibility and scalability. The number of residual blocks, the configuration of convolutional layers, and the structure of multi-layer perceptrons can be adjusted according to actual needs to adapt to target detection tasks of different complexity and scale. This solves the problem that traditional algorithms often have high false detection rates and poor robustness in complex and changeable simulated training battlefield scenarios, especially when the target is occluded, the background and the target are highly similar, and the lighting conditions change greatly. The detection performance of traditional algorithms will drop significantly, resulting in low saliency values ​​of traditional saliency detection algorithms in complex images and the inability to adapt to different environments and scene changes. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A flowchart of a scene object detection method based on a visual saliency model provided in an embodiment of the present application; Figure 2 A specific flow chart of evaluating and optimizing the performance of the initial saliency model on a validation set to obtain a final saliency model provided in an embodiment of the present application; Figure 3 A specific flow chart of the step of introducing multi-scale feature fusion in the residual block provided in the embodiment of the present application; Figure 4A schematic diagram of a scene object detection device based on a visual saliency model provided in an embodiment of the present application; Figure 5 A schematic diagram of a scene object detection server based on a visual saliency model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] The following describes some of the techniques involved in the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, some descriptions of well-known functions and structures are omitted in the following description.

[0021] The present application embodiment provides a scene object detection method based on a visual saliency model, such as Figure 1 As shown, the method includes steps S101 to S106. Among them, Figure 1 This is only an execution order shown in the embodiment of the present application, and does not represent the only execution order of a scene object detection method based on a visual saliency model. If the final result can be achieved, Figure 1 The steps shown may be performed in parallel or reversed.

[0022] S101: Collect images in the scene, annotate the locations and categories of objects in the images, and build a data set.

[0023] Specifically, the scenarios in this application can be very broad. This application uses the scenario of a simulated training battlefield as an example for illustration. Its core value lies in providing a highly simulated, safe and controllable environment to achieve specific training or testing purposes.

[0024] First, it is necessary to collect images of scenes containing simulated training battlefields from multiple channels. These images should cover different environmental conditions (such as day, night, different weather), different target types (such as fighter groups, fleets, armored vehicles, airports, etc.), and different detection difficulties (such as target occlusion, complex background, etc.). When collecting images in the scene, it is necessary to ensure the diversity of the data, because it helps the model learn the feature representations of different targets in different environments. At the same time, the quality of the data is also crucial. High-quality samples can more accurately reflect the true characteristics of the target, thereby improving the evaluation effect of the model.

[0025] Before the collected data is used for model training, data preprocessing can be performed. The purpose of preprocessing is to improve data quality and enhance the feature expression ability of the data, thereby improving the training efficiency and detection accuracy of the model. Specifically, preprocessing can include: 1. Image enhancement. By adjusting image parameters such as brightness, contrast, saturation, or adding noise, blur and other effects, the image changes under different environmental conditions are simulated to enhance the model's adaptability to complex environments. 2. Data conversion. Including operations such as image scaling, cropping, and rotation to generate more training samples, increase data diversity, and help the model learn more robust feature representations. 3. Data denoising. Remove noise and interference factors in the image, such as sensor noise, transmission errors, etc., to improve the quality of the image so that the model can extract target features more accurately.

[0026] Furthermore, the collected images are annotated in detail, including determining the location (usually using bounding box annotation) and category (such as fighter jets, armored vehicles, etc.) of each salient object in the image. Among them, the location of salient objects can be annotated using bounding boxes, and the accuracy of annotation is crucial for subsequent model training. The annotated images are organized into a structured dataset. This dataset will be used to train the model and serve as the basis for subsequent model evaluation and optimization.

[0027] S102: defining detection targets and setting constraints, wherein the detection targets defined are to ensure the accuracy of detecting key targets in the scene, and the constraints set are the significance of the detected targets and the effect of target detection.

[0028] Specifically, the detection goal is to ensure that the key targets in the scene can be accurately detected. The key targets are significant targets, such as fighter groups, fleets, armored vehicles, etc. Setting constraints requires the model to accurately identify the significant areas in the image, that is, those targets with significant features and easy to notice. This requires the model to learn these significant features during the training process and accurately distinguish them in practical applications. In addition to ensuring significance, setting constraints also requires the model to achieve certain effect standards during the detection process, including high precision (that is, the proportion of detected targets that are truly significant targets), high recall (that is, the proportion of significant targets detected) and a reasonable F1 score (the harmonic mean of precision and recall). In addition, the classification performance of the model can also be evaluated by ROC curves and AUC values.

[0029] S103: According to the detection target and constraints, a residual block is constructed between the convolutional neural network and the multi-layer perceptron to introduce a residual connection and construct an initial saliency model.

[0030] Specifically, when a convolutional neural network (CNN) is used in combination with a multi-layer perceptron (MLP), the spatial hierarchical features that the convolutional neural network is good at extracting will partially lose spatial information due to the fully connected nature of the multi-layer perceptron. This loss of information will affect the model's accurate recognition of significant areas in the image, resulting in the image saliency value of the detection result being lower than expected. In order to overcome this challenge and make full use of the respective advantages of convolutional neural networks and multi-layer perceptrons, this application adopts the strategy of residual connection. Residual connection not only solves the common problems of gradient vanishing and gradient exploding in neural networks, but also promotes the effective transfer and learning of model features.

[0031] Specifically, according to the detection target and constraints, a residual block is constructed between the convolutional neural network and the multi-layer perceptron to introduce a residual connection, including: defining a main path function and a shortcut function. The output of the main path function is added to the output of the shortcut function to obtain the output data of the residual block to introduce a residual connection.

[0032] Furthermore, the main path is the part of the residual block that is responsible for feature extraction and conversion. The main path function is used to receive input data and output a feature map after multiple operations on the input data. The multiple operations include convolution operations, batch normalization operations, and nonlinear activation function operations.

[0033] The specific operation of the main path is described as follows: The input data first passes through a convolution layer, which uses a set of learnable convolution kernels (or filters) to perform convolution operations on the input data to extract local features. The output of the convolution layer is a feature map that retains the spatial hierarchical information in the input data, but abstracts and enhances the features. The output of the convolution layer is then sent to the batch normalization layer. The batch normalization operation normalizes each channel of the feature map to have zero mean and unit variance. This helps to speed up the training process, increase the convergence speed of the model, and reduce the sensitivity of the model to the initial weights and learning rate. The output of the batch normalization layer is the normalized feature map. Finally, the normalized feature map passes through a nonlinear activation function, usually ReLU (English: Rectified Linear Unit). The ReLU function introduces nonlinear characteristics to the model by setting all negative values ​​to zero and leaving positive values ​​unchanged. This enhances the expressiveness of the model and enables the model to learn more complex feature mappings.

[0034] Therefore, the expression of the main path function is: .in, For input data, Represents the input data Perform convolution operation, Indicates that batch normalization is performed on the output after the convolution operation. Represents the application of batch normalization to the output Non-linear activation function to obtain feature map That is the output of the main path function.

[0035] Specifically, the input data of the shortcut function is the same as the input data of the main path function. The weight matrix is ​​introduced, and the input data is multiplied by the weight matrix to obtain the output of the shortcut function. With input data Dimensions compatible with the input data Perform linear transformation. This transformation is achieved through matrix multiplication. The expression of the shortcut function is: .in, is the same input data as the input data of the main path function, is the weight matrix, is the output of the shortcut function.

[0036] Weight Matrix is a learnable parameter matrix that is optimized during training to minimize the overall loss of the network. The value of can learn how to best transform the input data Convert to a shortcut function output representation , the output of this shortcut function will then be added to the output of the main path function to obtain the output data of the residual block. First, it is initialized to some small random numbers. These random numbers are usually random and close to 0 to avoid gradient explosion or disappearance in the early stage of training. First, a series of complex transformations are performed through the main path function, while the shortcut function also calculates its output. Then, the output of the main path function is added to the output of the shortcut function to obtain the output data of the residual block. This output data continues to propagate forward until the network produces a prediction result. The network's prediction result is compared with the true label and the loss (such as cross entropy loss) is calculated. The loss value is then back-propagated back to each layer in the network through the back-propagation algorithm. The gradient of the loss value with respect to the output of the shortcut function is further propagated to the weight matrix Specifically, the loss is calculated according to the chain rule with respect to the weight matrix The gradient of ,in, Represents the loss function L relative to the weight matrix Finally, use an optimization algorithm (such as SGD, Adam, etc.) to update the weight matrix based on the gradient information. The updating process aims to reduce the loss and make the network's prediction results closer to the true label.

[0037] S104: Obtain output data of the residual block as input data of the multi-layer perceptron.

[0038] Specifically, since the output data of the residual block is the sum of the output of the main path function and the output of the shortcut function, the expression of the output data of the residual block is: .in, is the output data of the residual block, is the output of the shortcut function, The output of the main path function.

[0039] It should be noted that if the dimension of the output data of the residual block does not match the input dimension expected by the multi-layer perceptron, a dimension transformation (such as flattening, reshaping, or additional convolutional layers) is required. Once the dimensions match, the output data of the residual block can be used as the input data of the multi-layer perceptron. The first layer (and subsequent layers) of the multi-layer perceptron will further process this input to extract higher-level features. The expression of the multi-layer perceptron is: .in, is the output data of the residual block, is the weight matrix of the multilayer perceptron. The weight matrix takes the output of the residual block as input and performs a linear transformation on it. The bias term is an additional parameter for each neuron (or node) in the multilayer perceptron, which allows the model to have a non-zero output even without any input.

[0040] S105: Outputting a first prediction result of the initial saliency model through an output layer of the multi-layer perceptron, wherein the first prediction result is used to distinguish between salient areas and non-salient areas of the image.

[0041] Specifically, the main purpose of the first prediction result is to distinguish the salient area from the non-salient area of ​​the image. The salient area refers to the eye-catching part of the image, which can be the target object of interest or the background information closely related to the target object. Through the output layer of the multi-layer perceptron, a saliency map with the same size as the input data can be output. In this saliency map, the value of each pixel represents the probability that the pixel belongs to the salient area. By setting a threshold, the saliency map can be Figure 2 The first prediction result refers to the saliency map or saliency mask obtained after the multi-layer perceptron performs preliminary processing and analysis on the input image. This prediction result is a preliminary judgment of the saliency of the image and can be used in the subsequent evaluation and optimization of the model.

[0042] S106: Using the data set to train the initial saliency model, and evaluating and optimizing the performance of the initial saliency model on the validation set, so as to obtain the final saliency model.

[0043] Figure 2 The specific flow chart of evaluating and optimizing the performance of the initial saliency model on the validation set provided in the embodiment of the present application to obtain the final saliency model is as follows: Figure 2 As shown, it includes steps S201 to S203.

[0044] S201: In the equipment intelligent algorithm experimental tool, design evaluation indicators and construct representative scenarios as simulation scenarios. The evaluation indicators include detection accuracy, detection false alarm rate, detection missed alarm rate and processing speed. Representative scenarios include scenarios that can cover different environmental conditions, different target types and different detection difficulties.

[0045] Specifically, first, a comprehensive set of evaluation indicators needs to be designed in the equipment intelligent algorithm experimental tool to comprehensively measure the performance of the saliency model. The equipment intelligent algorithm experimental tool can be TensorFlow (an open source machine learning library). Further, the evaluation indicators include detection accuracy (the ratio of the number of correctly detected targets to the total number of targets), detection false alarm rate (the ratio of non-targets mistakenly identified as targets), detection missed rate (the ratio of the number of undetected targets to the total number of targets) and processing speed (the speed at which the model processes the input image and gives the detection results). At the same time, it is necessary to build a set of representative simulation scenarios, which should cover different environmental conditions (such as lighting changes, weather conditions, etc.), different target types (such as vehicles, personnel, buildings, etc.) and different detection difficulties (such as target occlusion, small target detection, etc.). Building simulation scenarios also includes editing scenarios, generating equipment systems participating in the experiment, and setting up data interaction interfaces. By building simulation scenarios, the comprehensiveness and reliability of the evaluation results can be ensured. Setting up data interaction interfaces can accurately respond to changes in the test scenario, i.e., the simulation scenario, and transmit data in real time.

[0046] S202: Loading a simulation scenario and an initial saliency model in a virtual independent running environment, performing a simulation test, and collecting and storing test data in real time.

[0047] Specifically, in the virtual independent operation environment, the constructed simulation scene and initial saliency model are loaded. The simulation experiment is started, and the simulation scene data and the triggering instructions of the saliency model algorithm are pushed to the virtual independent operation environment, so that the initial saliency model can detect the target in the simulation scene in the virtual environment. During the experiment, the test data can be collected and stored in real time through the data center. The data center collects and stores the test data in real time, including the detection results, processing time and related scene information of the initial saliency model.

[0048] Furthermore, a saliency model to be evaluated may also be loaded, and the saliency model to be evaluated includes a saliency model that introduces a residual connection, that is, an initial saliency model, and a saliency model that does not introduce a residual connection.

[0049] S203: After the test is finished, the collected test data is evaluated and analyzed, and the initial significance model is adjusted and optimized according to the evaluation and analysis results, so as to obtain the final significance model.

[0050] Specifically, after the test, the collected test data is used for evaluation and analysis. Based on the evaluation and analysis results (such as detection accuracy, detection false alarm rate, detection missed alarm rate, etc.), the problems and shortcomings of the initial saliency model can be identified. Subsequently, the model is adjusted and optimized for these problems, which may include modifying the objective function, adjusting constraints, introducing new variables or parameters, etc. The adjusted model will be re-simulated to verify the optimization effect. This process will be iterative until the final saliency model that meets the performance requirements is obtained.

[0051] A scene object detection method based on a visual saliency model provided in an embodiment of the present application also includes: introducing a multi-scale feature fusion step in the residual block.

[0052] Figure 3 A specific flow chart of the step of introducing multi-scale feature fusion into the residual block provided in the embodiment of the present application is as follows: Figure 3 As shown, it includes steps S301 to S308.

[0053] S301: Use multiple convolution kernels of different scales to perform convolution operations on input data in the main path function to generate feature maps of multiple scales.

[0054] Specifically, in the main path function, i.e., the direct path of the residual block, multiple convolution kernels with different scales can be used to perform convolution operations on the input data. These convolution kernels can be 3*3, 5*5, etc. to capture local and global information of different scales. This step generates feature maps of multiple scales, each of which contains feature representations of the input data at different scales.

[0055] Furthermore, the input data of the present application is image data, and the input data is defined as input, which is usually a three-dimensional array (or tensor) with dimensions of height H, width W, and number of channels C. The input data can be a grayscale image (C=1) or a color image (C=3). Define a set of multi-scale convolution kernels, such as kernel1, kernel2,..., kernelN, where N is the total number of convolution kernels. Each convolution kernel kerneli (i from 1 to N) has its own unique size (such as 3*3, 5*5, 7*7, etc.) and depth (usually the same as the number of channels C of the input image). These convolution kernels have different sizes, allowing them to capture features of different scales in the input image. For each convolution kernel kerneli, a convolution operation conv is performed on it to generate the corresponding feature map. Therefore, the expression of the feature map is: Fi=conv(input,kerneli). The convolution operation can be specifically described as follows: the convolution kernel kerneli slides on the input image input, and for each position, the sum of the element-wise products of the convolution kernel and the corresponding area of ​​the input image (also called the receptive field) is calculated, and then an optional bias term is added. This process generates a new two-dimensional array, namely a feature map, whose size depends on the size of the convolution kernel, the stride, and the padding settings. Since the goal of this application is to ensure that key targets in the scene (such as fighter groups, fleets, armored vehicles, etc.) can be accurately detected, the size of the convolution kernel should take into account the possible scale and complexity of these targets in the image. When the convolution kernel size of 3*3 is used, due to its small size, it can capture local detail information in the input image, such as edges, textures, etc. When the convolution kernel size of 5*5 is used, it has a larger receptive field, so it can capture information in a larger area. Since the scales of key targets in the image may be different, the size of the convolution kernel should be able to cover these different scales. This can be achieved by setting multiple convolution kernels of different sizes or using convolution layers with different receptive fields. Through the convolution operation, a set of feature maps are obtained, each of which contains the feature representation of the input image at different scales.

[0056] S302: Perform a non-uniform segmentation operation on the generated feature map of each scale, and segment it into multiple regions of interest with different scales and shapes, so that each feature map has multiple regions of interest.

[0057] Specifically, the goal of the non-uniform segmentation operation is to divide the feature map into multiple regions, each of which is a region of interest. The "non-uniform" here means that the size, shape, and position of the region of interest can be irregular on the feature map to better adapt to targets or features of different scales and shapes in the image. For example, for a group of fighter jets, multiple small-sized regions of interest can be generated to capture each fighter separately; while for a fleet or armored vehicles, larger and irregularly shaped regions of interest can be generated to cover the entire target area. Regions of interest can have different sizes and shapes to adapt to various targets or features that may appear in the image. For example, some regions of interest may be rectangular to capture regular targets; while other regions of interest may be irregular in shape to capture objects with complex boundaries. Regions of interest can overlap, so that even if the target or feature spans multiple regions of interest, it can be fully captured and represented. Overlapping regions of interest can provide multiple perspectives and feature representations of the same area, which helps to enhance the robustness and accuracy of the model. For example, even if the position, posture, or scale of the target in the image changes, the characteristics of the target can be captured by the region of interest. The specific segmentation strategy can be designed according to the task requirements and the nature of the feature map. For example, the sliding window method can be used to combine windows of different scales to generate candidate regions of interest; or image segmentation algorithms (such as graph-based segmentation, level set method, etc.) can be used to directly generate irregularly shaped regions of interest. The expression of the non-uniform segmentation operation is: .in, is the region of interest formed after the non-uniform segmentation operation, To make the feature map The operation of splitting into multiple regions of interest.

[0058] S303: Determine the relative position of each interest region on the feature map of the same scale, and map it to the feature map where it is located.

[0059] S304: Taking the center point of each region of interest on the feature map as the center, extract a small area around the center point as the mapped feature map.

[0060] Specifically, the detection goal defined in this application is to ensure that key targets in the scene, such as buildings, can be accurately detected. These targets may have different scales and shapes and need to be detected at different feature scales. Therefore, it is first necessary to determine the feature map of each region of interest. This usually involves calculating the coordinates of a reference point such as the bounding box or center point of the region of interest in the feature map coordinate system. These coordinates can be pixel-level or can be values ​​after some normalization or scaling. Once the relative position of the region of interest on the feature map is known, a mapping operation can be performed. The purpose of mapping is to associate the region of interest with the corresponding region on the feature map so that features can be extracted from this region. If the coordinates of the center point of the region of interest on the feature map are (x, y), a rectangular area centered on (x, y) can be selected as the mapped feature map area. The size of this rectangular area can be determined based on the actual size of the region of interest and the resolution of the feature map to ensure that the region of interest can be fully covered. Another method is to directly use the bounding box coordinates of the region of interest to map, map the coordinates of the upper left corner and lower right corner (or other two diagonal points) of the region of interest to the feature map, and determine a rectangular area as the mapped feature map area based on this. The expression of the mapping operation is: .in, It is a region of interest formed after non-uniform segmentation operation Mapping to feature map And generate the mapped feature map The mapped feature map can be used to determine whether there is an object in the region of interest and to estimate the category and location of the object. By mapping the region of interest to a feature map of the same scale, specific image areas can be processed and analyzed more effectively.

[0061] S305: Perform a convolution operation on each mapped feature map to generate new feature maps with the same number as the regions of interest.

[0062] Specifically, after mapping the region of interest to the feature map, a convolution operation can be performed on each mapped feature map. The convolution operation can further extract useful information from the mapped feature map. The expression of the convolution operation is: .in, is the convolution operation, is the convolution kernel used to extract important information in the mapped feature map, is the feature map after mapping, is the new feature map obtained after the convolution operation. It should be noted that the convolution operation here is performed on each feature map after mapping. Therefore, we will eventually get a new set of feature maps with the same number of regions of interest.

[0063] S306: Perform a fusion operation on multiple new feature maps to generate a final feature map.

[0064] Specifically, after extracting useful information from each mapped feature map through the convolution operation, in order to synthesize this information to form a more comprehensive and accurate description of the region of interest, a fusion operation needs to be performed on the new feature map. The expression of the fusion operation is: .in, is the new feature map, is the final feature map, It represents a fusion operation on the new feature map, which can be the implementation of a variety of different strategies. The final feature map obtained by the fusion operation integrates the feature information from multiple regions of interest.

[0065] S307: Use the final feature map as input data of the multi-layer perceptron.

[0066] Specifically, after completing the fusion operation of multiple new feature maps, a final feature map that integrates information from multiple regions of interest is obtained. The final feature map contains rich visual features. In order to extract higher-level semantic information from these feature maps and convert them into prediction results that can be used for target detection tasks, this final feature map is used as the input data of the multi-layer perceptron.

[0067] A multilayer perceptron is a feedforward neural network that consists of multiple layers, each containing multiple neurons. These neurons are connected to each other through weighted connections, and nonlinear activation functions can be introduced to increase the complexity of the network. By inputting the final feature map into a multilayer perceptron, the powerful learning ability of the network can be used to capture the important information in the feature map and transform it into a more meaningful representation.

[0068] S308: Outputting a second prediction result of the initial saliency model through the output layer of the multi-layer perceptron, wherein the second prediction result is used to distinguish between salient areas and non-salient areas of the image.

[0069] Specifically, after the multilayer perceptron processes the final feature map, its output layer will generate the second prediction result of the initial saliency model. The main purpose of the second prediction result is to distinguish the salient areas from the non-salient areas of the image. Salient areas usually refer to the eye-catching parts of the image, which can be the target objects of interest or the background information closely related to the target objects. The second prediction result can help the initial saliency model to better understand the image content. At the same time, the second prediction result can also be used as an important indicator for evaluating model performance. By comparing with the real annotated data, the accuracy and robustness of the model can be evaluated.

[0070] The present application also provides a scene object detection device 400 based on a visual saliency model. Figure 4As shown, the device includes: a collection module 401, a definition module 402, a construction module 403, an acquisition module 404, an output module 405 and an optimization module 406.

[0071] The collection module 401 is used to collect images in the scene, mark the positions and categories of the objects in the images, and construct a data set.

[0072] The definition module 402 is used to define the detection target and set the constraint conditions.

[0073] The construction module 403 is used to construct a residual block between the convolutional neural network and the multi-layer perceptron according to the detection target and the constraint conditions, so as to introduce a residual connection and construct an initial saliency model.

[0074] The acquisition module 404 is used to acquire the output data of the residual block as input data of the multi-layer perceptron.

[0075] The output module 405 is used to output the first prediction result of the initial saliency model through the output layer of the multi-layer perceptron, wherein the first prediction result is used to distinguish between salient areas and non-salient areas of the image.

[0076] The optimization module 406 is used to train the initial saliency model using the data set, and to evaluate and optimize the performance of the initial saliency model on the validation set, so as to obtain the final saliency model.

[0077] Some modules in the apparatus described in the present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0078] The devices or modules described in the above application embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described in various modules according to their functions. When implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware. Of course, the module that implements a certain function can also be implemented by combining multiple sub-modules or sub-units.

[0079] The methods, devices or modules described in this application can be implemented in the form of computer-readable program codes. The controller can be implemented in any appropriate manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) that can be executed by the (micro)processor, logic gates, switches, application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program codes, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included in it for implementing various functions can also be regarded as structures within the hardware component. Or even, the means for realizing various functions may be regarded as both a software module for realizing the method and a structure within a hardware component.

[0080] like Figure 5 As shown, an embodiment of the present application also provides a scene target detection server based on a visual saliency model, including a memory 501 and a processor 502; the memory 501 is used to store computer executable instructions; the processor 502 is used to execute computer executable instructions to implement a scene target detection method based on a visual saliency model described above in an embodiment of the present application.

[0081] An embodiment of the present application also provides a computer-readable storage medium, which stores executable instructions. When a computer executes the executable instructions, it can implement the scene target detection method based on the visual saliency model described above in the embodiment of the present application.

[0082] It can be seen from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary hardware. Based on this understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, or it can be reflected in the implementation process of data migration. The computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the method described in the embodiment of the present application.

[0083] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. All or part of this application can be used in many general or special computer system environments or configurations.

[0084] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the present application.

Claims

1. A scene object detection method based on a visual saliency model, characterized in that: include: Collect images in the scene, annotate the locations and categories of the objects in the images, and build a data set; Define detection objectives and set constraints; According to the detection target and constraints, a residual block is built between the convolutional neural network and the multi-layer perceptron to introduce residual connections and build an initial saliency model; Obtaining output data of the residual block as input data of a multilayer perceptron; Outputting a first prediction result of the initial saliency model through an output layer of the multi-layer perceptron; wherein the first prediction result is used to distinguish between a salient area and a non-salient area of ​​the image; The initial saliency model is trained using the data set, and the performance of the initial saliency model is evaluated and optimized on the validation set, so as to obtain the final saliency model.

2. The scene object detection method based on the visual saliency model according to claim 1, characterized in that: According to the detection target and the constraint conditions, a residual block is constructed between the convolutional neural network and the multi-layer perceptron to introduce a residual connection, including: Define the main path function and shortcut function; The output of the main path function is added to the output of the shortcut function to obtain the output data of the residual block to introduce the residual connection.

3. The scene object detection method based on the visual saliency model according to claim 2, characterized in that: The main path function is used to receive input data and output a feature map after performing multiple operations on the input data; The multiple operations include convolution operations, batch normalization operations, and non-linear activation function operations.

4. The scene object detection method based on the visual saliency model according to claim 3, characterized in that: The input data of the shortcut function is the same as the input data of the main path function; The weight matrix is ​​introduced and the input data is multiplied by the weight matrix to obtain the output of the shortcut function.

5. The scene object detection method based on visual saliency model according to claim 1, characterized in that: Also includes: A multi-scale feature fusion step is introduced in the residual block.

6. The scene object detection method based on visual saliency model according to claim 5, characterized in that: The multi-scale feature fusion step includes: In the main path function, multiple convolution kernels of different scales are used to perform convolution operations on the input data to generate feature maps of multiple scales; Perform non-uniform segmentation on the generated feature map of each scale, and divide it into multiple regions of interest with different scales and shapes, so that there are multiple regions of interest on each feature map; Determine the relative position of each region of interest on the feature map of the same scale and map it to its respective feature map; Taking the center point of each region of interest on the feature map as the center, extract a small area around the center point as the mapped feature map; Perform convolution operation on each mapped feature map to generate new feature maps with the same number of regions of interest; Perform fusion operation on multiple new feature maps to generate the final feature map; Using the final feature map as input data of a multi-layer perceptron; The second prediction result of the initial saliency model is outputted through the output layer of the multi-layer perceptron; wherein the second prediction result is used to distinguish between salient areas and non-salient areas of the image.

7. The scene object detection method based on visual saliency model according to claim 1, characterized in that: The evaluating and optimizing the performance of the initial saliency model on the validation set to obtain a final saliency model includes: In the equipment intelligent algorithm experimental tool, evaluation indicators are designed and representative scenarios are constructed as simulation scenarios; wherein the evaluation indicators include detection accuracy, detection false alarm rate, detection missed alarm rate and processing speed, and the representative scenarios include scenarios that can cover different environmental conditions, different target types and different detection difficulties; Load the simulation scenario and the initial saliency model in the virtual independent running environment, conduct simulation experiments, and collect and store the experimental data in real time; After the experiment, the collected experimental data are evaluated and analyzed, and the initial significance model is adjusted and optimized according to the evaluation and analysis results to obtain the final significance model.

8. A scene object detection device based on a visual saliency model, characterized in that: include: The collection module is used to collect images in the scene, annotate the locations and categories of the objects in the images, and build a data set; Definition module, used to define detection targets and set constraints; A construction module is used to construct a residual block between the convolutional neural network and the multi-layer perceptron according to the detection target and constraints to introduce residual connections and build an initial saliency model; An acquisition module, used for acquiring output data of the residual block as input data of a multi-layer perceptron; An output module, used to output a first prediction result of the initial saliency model through an output layer of the multi-layer perceptron; wherein the first prediction result is used to distinguish between a salient area and a non-salient area of ​​the image; The optimization module is used to train the initial saliency model using the data set, and evaluate and optimize the performance of the initial saliency model on the validation set, so as to obtain the final saliency model.

9. A scene object detection server based on a visual saliency model, characterized in that: including memory and processor; The memory is used to store computer executable instructions; The processor is configured to execute the computer executable instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores executable instructions, and when a computer executes the executable instructions, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Saliency target detection method for guiding residual attention based on global information

    CN112329800A

  • Multi-feature fusion saliency detection method

    CN114022719A

  • Visual saliency detection method and system based on multilayer non-local network

    CN114612675A

  • Saliency target detection algorithm based on dense multi-scale reasoning network

    CN114612683A

  • Optical field saliency detection method based on optical flow fusion

    CN116091793A

Cited By

  • Map dynamic construction method and system fused with laser vision

    CN120506938A