3D object detection method and device based on sparse convolutional neural network

Through a 3D object detection method based on sparse convolutional neural networks, X-ray reconstructed 3D images are used for feature extraction and object detection, which solves the problems of insufficient computing resources and complex processing processes in the existing technology, and achieves more efficient 3D objects. detection.

CN111914774BActive Publication Date: 2024-09-06TSINGHUA UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010786993.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-05-07
Filing Date
2020-08-07
Publication Date
2024-09-06
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

Existing 3D object detection methods have problems with insufficient computing resources and complex processing procedures in scenarios such as airports, making detection speed and accuracy difficult to meet actual needs.

Method used

A 3D object detection method based on sparse convolutional neural network is used to perform end-to-end object detection through the preprocessing subnetwork, sparse convolutional subnetwork and detection subnetwork, and the X-ray reconstructed 3D image is used for feature extraction and object detection, simplifying Streamline the detection process and save computing resources.

Benefits of technology

It improves the speed and accuracy of 3D object detection, simplifies the detection process, and can speed up the security inspection process without losing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111914774B_ABST
    Figure CN111914774B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a 3D object detection method and device based on a sparse convolutional neural network, wherein the sparse convolutional neural network includes a preprocessing subnetwork, a sparse convolutional subnetwork and a detection subnetwork, wherein the method includes: preprocessing a 3D image to be detected by the preprocessing subnetwork to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays; extracting features from the first feature map by the sparse convolutional subnetwork to obtain a second feature map; and detecting the second feature map by the detection subnetwork to obtain an object detection result of the 3D image, wherein the object detection result includes the boundary information of the object, the category of the object and the confidence of the object. The embodiments of the present disclosure can realize end-to-end object detection of 3D images, which can not only save computing resources and simplify the detection process, but also improve the speed and accuracy of 3D object detection.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to a Chinese patent application filed with the Chinese Patent Office on May 7, 2020, with application number 202010378865.7 and application name “3D object detection method and device based on sparse convolutional neural network”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present disclosure relates to the field of artificial intelligence, and in particular to a 3D object detection method and device based on a sparse convolutional neural network. Background Art

[0003] In airports, subways and other scenarios, it is usually necessary to conduct security checks on luggage and other items. Security inspection equipment usually generates pseudo-color luggage images similar to RGB (Red Green Blue) images for security inspectors to inspect dangerous goods. The automation of security inspections can help speed up the security inspection process, avoid security inspection errors, and reduce security inspection manpower, so it is of great significance.

[0004] Existing new security inspection equipment can quickly reconstruct high-resolution 3D (3-Dimensional) bag images (a pseudo-color display such as Figure 1 Although 3D images provide more visual information, they are not only difficult to visualize, but even if the visualization is successful, it requires additional operations by the operator, which slows down the security inspection process.

[0005] At present, there are two main methods to achieve object detection on 3D images. One method is to directly transform the existing 2D detection model into a 3D detection model by expanding 2D convolution to 3D convolution, and train it on the existing 3D data set. However, due to the cubic growth of 3D data, directly migrating the 2D detection model faces the difficulty of insufficient computing resources. For example, the video memory and computing time of the GPU (Graphics Processing Unit) cannot meet the needs of actual scenes. Another method is to convert the 3D image into a 2D picture under multiple perspectives through multi-perspective projection, perform detection on the 2D pictures of multiple perspectives, and then use the back-projection operation to obtain the final 3D detection result. However, this method ignores the inherent three-dimensional structure in the data and has an overly complex processing flow. In addition, the limited perspectives selected by humans lead to very inaccurate estimates of the position coordinates of objects in specific directions. Summary of the invention

[0006] In view of this, the present disclosure proposes a 3D object detection technology solution based on a sparse convolutional neural network, which can realize end-to-end object detection by directly using the 3D bag image reconstructed by the original X-ray as input, thereby improving the speed and accuracy of object detection.

[0007] According to one aspect of the present disclosure, a 3D object detection method based on a sparse convolutional neural network is provided, wherein the sparse convolutional neural network includes a preprocessing subnetwork, a sparse convolutional subnetwork and a detection subnetwork, and the method includes:

[0008] Preprocessing the 3D image to be detected by the preprocessing subnetwork to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays;

[0009] Performing feature extraction on the first feature map through the sparse convolutional sub-network to obtain a second feature map;

[0010] The second feature map is detected through the detection subnetwork to obtain an object detection result of the 3D image, wherein the object detection result includes boundary information of the object, the category of the object and the object confidence.

[0011] In a possible implementation, preprocessing the 3D image to be detected by the preprocessing subnetwork to obtain a first feature map includes:

[0012] Extracting features of the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, which respectively represent the density, atomic number and electron density of the material constituting the object;

[0013] Normalizing and resizing the third feature map to obtain a fourth feature map;

[0014] The preprocessing subnetwork is used to perform feature extraction on the fourth feature map to obtain a first feature map of the 3D image to be detected.

[0015] In a possible implementation manner, detecting the second feature map by the detection subnetwork to obtain an object detection result of the 3D image includes:

[0016] According to the number of types of preset anchor frames and the number of categories of preset objects, the detection subnetwork is used to extract features from the second feature map to obtain a fifth feature map, wherein the fifth feature map is in a dense storage format, each spatial point in the fifth feature map corresponds to multiple anchor frames, and each anchor frame corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category;

[0017] An object detection result of the 3D image is determined according to the multiple anchor frames, transformation parameters corresponding to each anchor frame, object confidence, and probability that the object belongs to each category.

[0018] In a possible implementation, determining the object detection result of the 3D image according to the multiple anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence, and the probability that the object belongs to each category includes:

[0019] For any anchor frame, transform the anchor frame according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame;

[0020] Determining an object score corresponding to the detection frame according to the object confidence corresponding to the anchor frame;

[0021] When the object score is greater than or equal to a preset score threshold, determining boundary information of the detected object according to the detection frame;

[0022] The confidence of the detected object and the category of the object are determined according to the object confidence corresponding to the anchor frame and the probability that the object belongs to each category.

[0023] In a possible implementation, the sparse convolutional subnetwork includes a first convolutional subnetwork and a second convolutional subnetwork, wherein the second convolutional subnetwork is a U-shaped network.

[0024] The step of extracting features from the first feature map by using a sparse convolutional sub-network to obtain a second feature map includes:

[0025] Performing residual sparse convolution on the first feature map through the first convolutional subnetwork to obtain a sixth feature map;

[0026] The second convolutional sub-network is used to perform feature extraction on the sixth feature map to obtain a second feature map.

[0027] In a possible implementation, the fourth feature map is in a sparse storage format, and the sparsely stored spatial coordinates are separated from the channel features.

[0028] According to another aspect of the present disclosure, a 3D object detection device based on a sparse convolutional neural network is provided, wherein the sparse convolutional neural network includes a preprocessing subnetwork, a sparse convolutional subnetwork and a detection subnetwork, and the device includes:

[0029] A preprocessing module, used for preprocessing the 3D image to be detected through the preprocessing sub-network to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays;

[0030] A feature extraction module, used to extract features from the first feature map through the sparse convolutional sub-network to obtain a second feature map;

[0031] A detection module is used to detect the second feature map through the detection subnetwork to obtain an object detection result of the 3D image, wherein the object detection result includes boundary information of the object, the category of the object and the object confidence.

[0032] In a possible implementation, the preprocessing module includes:

[0033] A first feature extraction submodule is used to extract features from the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, which respectively represent the density, atomic number and electron density of the material constituting the object;

[0034] A normalization processing submodule, used for performing normalization processing and size adjustment on the third feature map to obtain a fourth feature map;

[0035] The second feature extraction submodule is used to extract features from the fourth feature map through the preprocessing subnetwork to obtain a first feature map of the 3D image to be detected, and the preprocessing subnetwork at least includes a submanifold sparse convolution layer.

[0036] According to another aspect of the present disclosure, a 3D object detection device based on a sparse convolutional neural network is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the above method.

[0037] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0038] According to the embodiments of the present disclosure, the 3D image to be detected can be preprocessed by the preprocessing subnetwork of the sparse convolutional neural network to obtain a first feature map; the first feature map can be feature extracted by the sparse convolutional subnetwork of the sparse convolutional neural network to obtain a second feature map; and the second feature map can be detected by the detection subnetwork of the sparse convolutional neural network to obtain the object detection result of the 3D image, thereby realizing end-to-end object detection of 3D images by the sparse convolutional neural network, which not only saves a lot of computing resources, reduces the complexity of 3D object detection, simplifies the detection process, but also improves the speed and accuracy of 3D object detection. The 3D object detection method based on the sparse convolutional neural network described in the embodiments of the present disclosure can assist security inspectors in security inspections and speed up the security inspection process without losing accuracy.

[0039] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0041] Figure 1 A schematic diagram showing a 3D image reconstructed by X-rays according to an embodiment of the present disclosure.

[0042] Figure 2 A schematic diagram showing an activation point response rule for a sparse convolution operation according to an embodiment of the present disclosure.

[0043] Figure 3 A schematic diagram showing an activation point response rule for a submanifold sparse convolution operation according to an embodiment of the present disclosure.

[0044] Figure 4 A flowchart of a 3D object detection method based on a sparse convolutional neural network according to an embodiment of the present disclosure is shown.

[0045] Figure 5 A schematic diagram showing a sparse storage format according to an embodiment of the present disclosure.

[0046] Figure 6 A schematic diagram showing the processing process of the preprocessing subnetwork according to an embodiment of the present disclosure.

[0047] Figure 7 A schematic diagram showing a processing procedure of residual sparse convolution according to an embodiment of the present disclosure.

[0048] Figure 8 A schematic diagram showing a processing procedure of residual submanifold sparse convolution according to an embodiment of the present disclosure.

[0049] Fig. 9 A schematic diagram showing a processing procedure of a U-type network according to an embodiment of the present disclosure.

[0050] Fig.10 A schematic diagram showing the processing procedure of a 3D object detection method based on a sparse convolutional neural network according to an embodiment of the present disclosure.

[0051] Fig.11 A block diagram of a 3D object detection device based on a sparse convolutional neural network according to an embodiment of the present disclosure is shown.

[0052] Fig.12 A block diagram of a 3D object detection device based on a sparse convolutional neural network according to an embodiment of the present disclosure is shown.

[0053] Fig.13 A block diagram of a 3D object detection device based on a sparse convolutional neural network according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0054] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0055] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0056] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0057] The 3D object detection method based on sparse convolutional neural network described in the embodiments of the present disclosure can be applied to a processor, which can be a general-purpose processor, such as a CPU (Central Processing Unit), or an artificial intelligence processor (IPU) for performing artificial intelligence operations, such as a GPU (Graphics Processing Unit), NPU (Neural-Network Processing Unit), DSP (Digital Signal Process), etc. The present disclosure does not limit the specific type of the processor.

[0058] The sparse convolutional neural network described in the embodiments of the present disclosure can perform feature extraction and detection on the input 3D image through operations such as sparse convolution, submanifold sparse convolution, sparse deconvolution, and full connection.

[0059] Different from the usual sparse operation based on numerical definition (points in the data with all eigenvalues ​​of 0 do not participate in the calculation), the sparse operation of the present disclosure defines activation points, and only activation points participate in the calculation during the sparse operation. For the first sparse operation, its input activation points may include data points in the input data with eigenvalues ​​that are not all 0, and its output activation points may be determined according to the preset activation point response rules and input activation points; for the sparse operation after the first sparse operation, its input activation points may include the output activation points of the previous sparse operation, and its output activation points may be determined according to the preset activation point response rules and the input activation points of the sparse operation.

[0060] In this way, not only can a lot of computing time be saved, but also some problems existing in sparse operations based on numerical definitions can be avoided. For example, when a certain layer of the network has a non-zero bias, the sparsity will not be maintained after passing this layer.

[0061] In one possible implementation, the activation point response rule of the sparse convolution operation can be: a point in the output of the sparse convolution is an activation point if and only if there is an activation point in the input point connected to the point through convolution; the activation point response rule of the submanifold sparse convolution operation can be: a point in the output of the submanifold sparse convolution is an activation point if and only if the point at the same position in the input is also an activation point.

[0062] The difference between sparse convolution operation and submanifold sparse convolution operation is that sparse convolution operation will have an expansion effect, and its activation points will increase, while submanifold sparse convolution operation can keep the number of activation points unchanged.

[0063] Figure 2 A schematic diagram showing an activation point response rule for a sparse convolution operation according to an embodiment of the present disclosure is shown. Figure 2 As shown in the figure, the convolution kernel size of the sparse convolution operation is 3, and a point in its output is an activation point if and only if there is an activation point in the 9 input points connected to the point through convolution. In other words, whether an output point of the sparse convolution operation is activated depends on whether there is an activation point in the 9 input points connected to the output point through convolution.

[0064] Figure 3 A schematic diagram showing an activation point response rule for a submanifold sparse convolution operation according to an embodiment of the present disclosure is shown. Figure 3 As shown in the figure, for a submanifold sparse convolution operation, a point in its output is an activation point if and only if the point at the same position in the input is also an activation point, that is, whether an output point of a submanifold sparse convolution operation is activated depends on whether the input point at the same position is activated.

[0065] It should be understood that those skilled in the art may also set other activation point response rules according to actual needs, and the present disclosure does not limit this.

[0066] In one possible implementation, when performing a sparse convolution operation, the output activation point can be first determined according to the preset activation point response rule of the sparse convolution operation; then the spatial correspondence between the input and output is determined according to the convolution connection method; then the input features are linearly transformed; finally, the transformed features of the input point corresponding to the output point are aggregated in a summation manner to form the output features.

[0067] For example, for a 3D sparse convolution operation with a kernel size of 2K+1, there are (2K+1) 3The linear transformation function ψ i′,j′,k′ , where K is an integer and K ≥ 0, i′, j′, k′ are integers and -K ≤ i′, j′, k′ ≤ K. When performing sparse convolution operations, the features of the activated output point at the (p, q, r) position can be determined by the following formula (1):

[0068]

[0069] in, is the feature of the output point (p, q, r), the superscript O indicates the output, is the feature of the input point (u, v, w), the superscript I represents the input, and when the input point (u, v, w) is the activation point, I u,v,w =1, when the input point (u,v,w) is a non-activated point, I u,v,w =0, p, q, r, u, v, w are all integers greater than or equal to 0.

[0070] In a possible implementation, when the input point (u, v, w) is an inactive point, the corresponding It is also not used as part of the summation, which saves computation time and increases computation speed.

[0071] In a possible implementation, the submanifold sparse convolution operation differs from the sparse convolution operation only in that the activation point response rule is different, and its processing process is similar to that of the above-mentioned sparse convolution operation, which will not be described here.

[0072] In a possible implementation, the sparse convolutional neural network may include a preprocessing subnetwork, a sparse convolutional subnetwork, and a detection subnetwork. The preprocessing subnetwork may be used to preprocess the input image, the sparse convolutional subnetwork may be used to extract features, and the detection subnetwork may be used to detect objects.

[0073] Figure 4 FIG. 1 is a flow chart of a 3D object detection method based on a sparse convolutional neural network according to an embodiment of the present disclosure. Figure 4 As shown, the method includes:

[0074] Step S100, preprocessing the 3D image to be detected by the preprocessing subnetwork to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays.

[0075] In a possible implementation, the 3D image to be detected obtained by reconstructing the object to be detected by X-rays may include multiple channels with physical meanings, such as the atomic number and density of the material constituting the object.

[0076] The 3D image to be detected may be preprocessed by a preprocessing subnetwork of a sparse convolutional neural network. For example, feature extraction and normalization may be performed on the 3D image to be detected to obtain a first feature map.

[0077] Step S200: extract features from the first feature map through the sparse convolutional sub-network to obtain a second feature map.

[0078] In a possible implementation, the sparse convolution subnetwork can extract features from the input first feature map through operations such as sparse convolution, submanifold sparse convolution, and sparse deconvolution to obtain a second feature map.

[0079] Step S300: Detect the second feature map through the detection subnetwork to obtain an object detection result of the 3D image, wherein the object detection result includes boundary information of the object, the category of the object, and the object confidence.

[0080] Among them, the boundary information of the object may include information such as the object's boundary box and boundary position coordinates. The category of the object can be a relatively general first-level category such as electronic equipment, daily necessities, and controlled items, or it can be a more specific second-level category such as tablet computers, mobile phones, cameras, watches, laptops, milk powder, wine, controlled knives, power banks, lighters, etc.; the object confidence can be used to indicate the degree of certainty of the detected object.

[0081] It should be understood that those skilled in the art may set the category of the object according to the actual application scenario, and the present disclosure does not limit this.

[0082] According to the embodiments of the present disclosure, the 3D image to be detected can be preprocessed by the preprocessing subnetwork of the sparse convolutional neural network to obtain a first feature map; the first feature map can be feature extracted by the sparse convolutional subnetwork of the sparse convolutional neural network to obtain a second feature map; and the second feature map can be detected by the detection subnetwork of the sparse convolutional neural network to obtain the object detection result of the 3D image, thereby realizing end-to-end object detection of 3D images by the sparse convolutional neural network, which not only saves a lot of computing resources, reduces the complexity of 3D object detection, simplifies the detection process, but also improves the speed and accuracy of 3D object detection. The 3D object detection method based on the sparse convolutional neural network described in the embodiments of the present disclosure can assist security inspectors in security inspections and speed up the security inspection process without losing accuracy.

[0083] In a possible implementation, step S100 may include: performing feature extraction on the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, respectively representing the density, atomic number and electron density of the material constituting the object; normalizing and resizing the third feature map to obtain a fourth feature map; and performing feature extraction on the fourth feature map through the preprocessing subnetwork to obtain a first feature map of the 3D image to be detected.

[0084] In a possible implementation, the 3D image to be detected includes multiple channels with physical meanings, and feature extraction (such as channel selection) can be performed on the 3D image to be detected to obtain a third feature map, which may include three channels: density (S), atomic number (Z), and electron density (D) of the material constituting the object. In other words, the third feature map can represent the material characteristics of the object.

[0085] Among them, the density S of a substance represents the unit mass of the substance that constitutes the object. For example, the density of metal utensils is often relatively large, while the density of clothes and books is relatively small; the atomic number Z of a substance can represent the elements of the substance that constitute the object. For example, the atomic number of elements that constitute gases and liquids is usually relatively small, while the atomic number of metal elements is usually relatively large; the electron density D of a substance is a measure of the probability of an electron appearing at a specific position. It is also an inherent physical property of a substance and can be used to determine the material composition of the substance.

[0086] In a possible implementation, after obtaining the third feature map, the third feature map may be normalized and resized to obtain a fourth feature map. During the normalization process, each channel of the third feature map may be normalized separately to prevent some feature values ​​from being too large or too small.

[0087] In one possible implementation, during the normalization process, the characteristic values ​​of one or more channels can be filtered according to a preset characteristic threshold. For example, some relatively small characteristic values ​​in the D channel (i.e., the electron density channel) can be filtered. The relatively small characteristic values ​​correspond to substances formed by lightweight elements (such as gas substances), thereby obtaining more sparse data and improving the detection speed.

[0088] In a possible implementation, the normalized third feature map may be resized according to a preset size by cropping or filling (for example, filling using an interpolation algorithm) to obtain a fourth feature map.

[0089] In a possible implementation, the fourth feature map is in a sparse storage format, and the sparsely stored spatial coordinates are separated from the channel features. An integer matrix can be used to store the three-dimensional spatial position coordinates of each spatial point whose eigenvalue is not all zero in the fourth feature map, and a floating-point matrix can be used to store the channel feature vector corresponding to each position coordinate in the integer matrix, and the channel feature vector includes the eigenvalues ​​of the three channels S, Z, and D of the spatial point. In this way, the storage format of the fourth feature map can be converted into a sparse storage format in which the spatial coordinates are separated from the channel features.

[0090] Figure 5 A schematic diagram of a sparse storage format according to an embodiment of the present disclosure is shown. Figure 5 As shown, the position matrix is ​​an integer matrix used to store the three-dimensional space position coordinates, where (x1, y1, z1), (x2, y2, z2), ..., (x n ,y n , z n ) represents the three-dimensional spatial position coordinates of the spatial points whose eigenvalues ​​are not all zero in the fourth feature map; the feature matrix is ​​a floating-point matrix used to store the channel eigenvectors corresponding to each position coordinate, which are eigenvector 1, eigenvector 2, ..., eigenvector n, where n is a positive integer.

[0091] In a possible implementation, after obtaining the fourth feature map, the preprocessing sub-network of the sparse convolutional neural network can be used to extract features from the fourth feature map to obtain a first feature map of the 3D image to be detected. That is, the fourth feature map can be input into the preprocessing sub-network, and the preprocessing sub-network can perform sub-manifold sparse convolution, batch normalization, activation and other processing on the input fourth feature map to obtain the first feature map of the 3D image to be detected.

[0092] Among them, the activation function of the activation processing can be a linear rectification function (Rectified Linear Unit, abbreviated as ReLU), or other functions (such as a sigmoid function, etc.). The present disclosure does not limit the specific type of the activation function.

[0093] Figure 6 FIG. 1 is a schematic diagram showing the processing process of the preprocessing subnetwork according to an embodiment of the present disclosure. Figure 6 As shown, the preprocessing sub-network can perform sub-manifold sparse convolution 11, batch normalization and activation processing 12, sub-manifold sparse convolution 13, batch normalization and activation processing 14 on the input fourth feature map in sequence to obtain the first feature map of the 3D image to be detected.

[0094] Among them, the convolution kernel sizes of submanifold sparse convolution 11 and submanifold sparse convolution 13 are both 3. Submanifold sparse convolution 11 can transform the dimension of the feature map from 3 to 32, and submanifold sparse convolution 13 can transform the dimension of the feature map from 32 to 64.

[0095] For example, the fourth feature map with a spatial size of (199, 199, 519) and a channel number of 3 can be input into the preprocessing subnetwork, and the preprocessing subnetwork performs the following operations on the input fourth feature map: Figure 6 After the processing shown, a first feature map with a spatial size of (199, 199, 519) and 64 channels can be obtained.

[0096] In this embodiment, by performing feature extraction on the 3D image to be detected, a third feature map including three channels of density, atomic number and electron density of the material constituting the object is obtained, and the third feature map is normalized and resized to obtain a fourth feature map. Then, through the preprocessing sub-network, the fourth feature map is subjected to sub-manifold sparse convolution and other processing to obtain the first feature map of the 3D image to be detected, so that the first feature map has sparsity, thereby improving the detection speed.

[0097] In a possible implementation, the sparse convolutional subnetwork may include a first convolutional subnetwork and a second convolutional subnetwork, the second convolutional subnetwork is a U-type network, and step S200 may include:

[0098] Performing residual sparse convolution on the first feature map through the first convolutional subnetwork to obtain a sixth feature map;

[0099] The second convolutional sub-network is used to perform feature extraction on the sixth feature map to obtain a second feature map.

[0100] In a possible implementation, after the first feature map is input into the sparse convolution subnetwork, the first feature map may be firstly subjected to at least one residual sparse convolution through the first convolution subnetwork in the sparse convolution subnetwork to obtain a sixth feature map. The residual sparse convolution may include multiple processes such as sparse convolution, submanifold sparse convolution, batch normalization, and activation.

[0101] Figure 7 FIG. 1 is a schematic diagram showing the processing process of residual sparse convolution according to an embodiment of the present disclosure. Figure 7 As shown, the specific processing process of the residual sparse convolution is as follows: the input feature map is subjected to batch normalization and activation processing 21, sparse convolution 22, batch normalization and activation processing 23, and submanifold sparse convolution 24 in sequence to obtain the seventh feature map. At the same time, the feature map obtained by batch normalization and activation processing 21 is subjected to sparse convolution 25 to obtain the eighth feature map. Then, the seventh feature map and the eighth feature map are summed to obtain the output feature map.

[0102] Among them, the convolution kernel sizes of sparse convolution 22, sparse convolution 25 and submanifold sparse convolution 24 are all 3; the step size of sparse convolution 22 and sparse convolution 25 is 2, so that the resolution of the feature map is reduced to 1 / 2 of the original in each dimension, and the number of channels is twice the original; submanifold sparse convolution 24 maintains the number of channels unchanged.

[0103] In a possible implementation, the first convolutional subnetwork may perform three residual sparse convolutions on the input first feature map to obtain a sixth feature map. The specific processing process is as follows: the first feature map with a spatial size of (199, 199, 519) and a number of channels of 64 can be input into the first convolutional subnetwork for three residual sparse convolutions. The input of the first residual sparse convolution is the first feature map, and the output is a feature map with a spatial size of (99, 99, 259) and a number of channels of 128. The input of the second residual sparse convolution is a feature map with a spatial size of (99, 99, 259) and a number of channels of 128, and the output is a feature map with a spatial size of (49, 49, 129) and a number of channels of 256. The input of the third residual sparse convolution is a feature map with a spatial size of (49, 49, 129) and a number of channels of 256, and the output is a feature map with a spatial size of (24, 24, 64) and a number of channels of 512. Then, the feature map with a spatial size of (24, 24, 64) and a number of channels of 512 obtained by the third residual sparse convolution is determined as the sixth feature map.

[0104] In a possible implementation, after obtaining the sixth feature map, the second convolutional subnetwork can be used to extract features from the sixth feature map to obtain a second feature map. The second convolutional subnetwork is a U-type network, which can perform residual submanifold sparse convolution, sparse convolution, sparse deconvolution, batch normalization, activation and other processing on the input sixth feature map to obtain the second feature map. The residual submanifold sparse convolution includes multiple processing such as submanifold sparse convolution, batch normalization and activation.

[0105] Figure 8 FIG. 1 is a schematic diagram showing the processing process of residual submanifold sparse convolution according to an embodiment of the present disclosure. Figure 8 As shown, the specific processing process of the residual submanifold sparse convolution is as follows: the input feature map is subjected to batch normalization and activation processing 31, submanifold sparse convolution 32, batch normalization and activation processing 33, and submanifold sparse convolution 34 in sequence to obtain the ninth feature map, and then the ninth feature map and the input feature map are summed to obtain the output feature map. Among them, the convolution step size of the submanifold sparse convolution 32 and the submanifold sparse convolution 34 are both 1.

[0106] Fig. 9FIG. 1 is a schematic diagram showing a processing process of a U-type network according to an embodiment of the present disclosure. Fig. 9 As shown, the processing process of the U-type network is as follows: the sixth feature map of the input is subjected to residual submanifold sparse convolution 411 to obtain the tenth feature map; the tenth feature map is subjected to batch normalization and activation processing 421, sparse convolution 422, and residual submanifold sparse convolution 423 in sequence to obtain the eleventh feature map; the eleventh feature map is subjected to batch normalization and activation processing 431, sparse convolution 432, residual submanifold sparse convolution 433, batch normalization and activation processing 434, and sparse deconvolution in sequence. The product 435 is performed to obtain a twelfth feature map; the eleventh feature map and the twelfth feature map are summed, and the feature map obtained by the summation operation is sequentially subjected to residual submanifold sparse convolution 441, batch normalization and activation processing 442, and sparse deconvolution 443 to obtain a thirteenth feature map; the tenth feature map and the thirteenth feature map are summed, and the feature map obtained by the summation operation is subjected to residual submanifold sparse convolution 451 to obtain a feature map output by the U-type network, i.e., the second feature map.

[0107] Among them, the sparse convolution step size in the U-type network is 2, which can further reduce the resolution of the feature map to 1 / 2 in each dimension, while the sparse deconvolution can restore the resolution of the feature map.

[0108] In one possible implementation, feature extraction is performed through a U-shaped network, which can obtain more context information while maintaining a certain resolution. Fig. 9 The U-shaped network shown in the figure extracts features from the sixth feature map with a spatial size of (24,24,64) and a number of channels of 512. During the feature extraction process, the resolution of the feature map can be reduced to (6,6,16) at the minimum. At this time, the receptive field of each spatial point in the feature map is expanded by 4 times, and more context information is obtained. After being processed by the U-shaped network, the second feature map with a spatial size of (24,24,64) and a number of channels of 512 is finally obtained. Although the spatial size and number of channels of the second feature map are the same as those of the sixth feature map, the second feature map includes more context information than the sixth feature map.

[0109] In this embodiment, residual sparse convolution is performed on the first feature map through the first convolution subnetwork to obtain a sixth feature map, and feature extraction is performed on the sixth feature map through the second convolution subnetwork (i.e., U-type network) to obtain a second feature map, which can improve the accuracy of feature extraction.

[0110] In a possible implementation, step S300 may include:

[0111] According to the number of types of preset anchor frames and the number of categories of preset objects, the detection subnetwork is used to extract features from the second feature map to obtain a fifth feature map, wherein the fifth feature map is in a dense storage format, each spatial point in the fifth feature map corresponds to multiple anchor frames, and each anchor frame corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category;

[0112] An object detection result of the 3D image is determined according to the multiple anchor frames, transformation parameters corresponding to each anchor frame, object confidence, and probability that the object belongs to each category.

[0113] In a possible implementation, multiple anchor frames can be designed according to the size characteristics of the object. For example, when designing an anchor frame, two side lengths of L and 2L can be selected for the anchor frame according to the size characteristics of the object. Since the anchor frame has three sides, eight cuboid anchor frames of different sizes can be obtained, that is, the number of anchor frame types is 8. For any anchor frame, it can be represented by the spatial position coordinates of its upper left front vertex and the three side lengths (i.e., width, height, and depth, which are parallel to the X, Y, and Z axes, respectively).

[0114] In one possible implementation, based on the preset number of anchor box types and the preset number of object categories, the detection subnetwork of the sparse convolutional neural network can be used to extract features from the second feature map and perform storage format conversion to obtain a fifth feature map in a dense storage format (e.g., tensor storage).

[0115] Among them, the fifth feature map has multiple channels, each spatial point in the fifth feature map corresponds to multiple anchor boxes, and each anchor box has a transformation parameter, object confidence, and the probability that the object belongs to each category corresponding to it.

[0116] In a possible implementation, the number of channels of the fifth feature map can be determined according to the number of types of preset anchor frames and the number of preset object categories. For example, the spatial size of the second feature map is (24, 24, 64), the number of channels is 512, the number of types of preset anchor frames is 8, and the number of preset object categories is C. The second feature map can be extracted through the detection subnetwork to obtain a fifth feature map with a spatial size of (24, 24, 64) and a number of channels of 8*(1+6+C). Among them, 8 represents the number of types of preset anchor frames; 1 channel corresponding to "1" represents the object confidence corresponding to the anchor frame; 6 channels corresponding to "6" represent the transformation parameters of the X, Y, and Z axes corresponding to the anchor frame, respectively, and each axis includes two transformation parameters; C channels corresponding to "C" represent the probability that the object corresponding to the anchor frame belongs to each category.

[0117] In a possible implementation, any anchor box in the fifth feature map has (1+6+C) channel values ​​corresponding to it. The (1+6+C) channel values ​​may include the object confidence (1 channel value), transformation parameters (6 channel values) and the probability of the object belonging to each category (C channel values) corresponding to the anchor box.

[0118] In a possible implementation, after obtaining the fifth feature map, the object detection result of the 3D image can be determined according to the multiple anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence and the probability that the object belongs to each category.

[0119] For example, the number of preset anchor frame types is 8. For the fifth feature map with a spatial size of (24,24,64), there are 24*24*64 spatial points, and each spatial point has 8 anchor frames corresponding to it, that is, each spatial point is attached with 8 anchor frames. For any anchor frame in the fifth feature map, the object detection result corresponding to the anchor frame can be determined according to the transformation parameters corresponding to the anchor frame, the object confidence, and the probability that the object belongs to each category; then, the object detection result of the 3D image can be determined according to the object detection results corresponding to multiple anchor frames.

[0120] In this embodiment, feature extraction can be performed on the second feature map according to the preset number of anchor frame types and the preset number of object categories to obtain a densely stored fifth feature map, in which each spatial point in the fifth feature map corresponds to multiple anchor frames, and each anchor frame corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category; then, based on the multiple anchor frames in the fifth feature map, the transformation parameters corresponding to each anchor frame, the object confidence, and the probability that the object belongs to each category, the object detection result of the 3D image is determined, so that multiple anchor frames can be used for object detection, which can improve the accuracy of object detection.

[0121] In a possible implementation, determining the object detection result of the 3D image according to the multiple anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence, and the probability that the object belongs to each category may include:

[0122] For any anchor frame, transform the anchor frame according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame;

[0123] Determining an object score corresponding to the detection frame according to the object confidence corresponding to the anchor frame;

[0124] When the object score is greater than or equal to a preset score threshold, determining boundary information of the detected object according to the detection frame;

[0125] The confidence of the detected object and the category of the object are determined according to the object confidence corresponding to the anchor frame and the probability that the object belongs to each category.

[0126] In a possible implementation, for any anchor frame, the anchor frame can be transformed according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame. The detection frame can be represented by the spatial position coordinates of its upper left front vertex and the lengths of its three sides (i.e., width, height, and depth, which are parallel to the X, Y, and Z axes, respectively).

[0127] For example, for any anchor box a, the spatial position coordinates of its upper left front vertex are (a x ,a y ,a z ), whose three sides (i.e. width, height, and depth) are a w ,a h ,a d , the anchor box a can be transformed by the following formulas (2)-(7) to obtain the detection box b corresponding to the anchor box a:

[0128] b x =σ(t x )+a x (2)

[0129] b y =σ(t y )+a y (3)

[0130] b z =σ(t z )+a z (4)

[0131] b w =a w exp(t w ) (5)

[0132] b h =a h exp(t h ) (6)

[0133] b d =a d exp(t d ) (7)

[0134] Among them, (b x ,b y ,b z ) represents the spatial position coordinates of the upper left front vertex of the detection box b corresponding to the anchor box a, b w ,b h ,b dThey represent the three side lengths (i.e., width, height, and depth) of the detection box b corresponding to the anchor box a, σ represents the sigmoid function, exp represents the exponential function with the natural constant e as the base, and t x ,t y ,t z ,t w ,t h ,t d Represents the 6 transformation parameters corresponding to the anchor box a.

[0135] In a possible implementation, after obtaining the detection frame corresponding to the anchor frame, the object score corresponding to the detection frame can be determined according to the object confidence corresponding to the anchor frame. For example, for anchor frame a, after transformation, detection frame b can be obtained by σ(t o ) to calculate the object score corresponding to the detection box b, where σ represents the sigmoid function, t o Represents the object confidence corresponding to the anchor box a.

[0136] In a possible implementation, the relationship between the object score corresponding to the detection frame and a preset score threshold may be determined. When the object score corresponding to the detection frame is greater than or equal to the preset score threshold, the detection frame may be considered to include an object, and the boundary information of the detected object may be determined based on the detection frame, that is, the spatial position coordinates of the upper left front vertex and the three side lengths of the detection frame may be determined as the boundary information of the detected object;

[0137] In a possible implementation, when the object score corresponding to the detection frame is greater than or equal to a preset score threshold, the object confidence corresponding to the anchor frame may be determined as the detected object confidence.

[0138] In a possible implementation, when the score of the object corresponding to the detection frame is greater than or equal to a preset score threshold, the category of the object may be determined according to the probability that the object corresponding to the anchor frame belongs to each category. For example, when the score of the object corresponding to the detection frame b is greater than or equal to the preset score threshold, the maximum probability may be determined from the probabilities that the object corresponding to the anchor frame a belongs to each category, and the category of the object corresponding to the maximum probability is determined as the category of the detected object.

[0139] In a possible implementation, the above processing may be performed on each anchor frame in the fifth feature map to obtain an object detection result of the 3D image to be detected.

[0140] In this embodiment, for any anchor frame, the anchor frame can be transformed according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame, and the object score corresponding to the detection frame is determined according to the object confidence corresponding to the anchor frame. When the object score is greater than or equal to a preset score threshold, the boundary information of the detected object is determined according to the detection frame, and the detected object confidence and the category of the object are determined according to the object confidence corresponding to the anchor frame and the probability that the object belongs to each category, thereby improving the accuracy of object detection.

[0141] In a possible implementation manner, the method may further include: training the sparse convolutional neural network according to a preset training set, where the training set includes a plurality of reference 3D images and annotation information of the plurality of reference 3D images.

[0142] During training, multiple reference 3D images can be respectively input into the sparse convolutional neural network for processing to obtain object detection results of the multiple reference 3D images; the network loss of the sparse convolutional neural network can be determined based on the object detection results of the multiple reference 3D images and their annotation information.

[0143] In one possible implementation, when determining the network loss of the sparse convolutional neural network, the detection loss of each anchor box corresponding to any reference 3D image may be first determined. For any anchor box a′ corresponding to any reference 3D image, its detection loss L i,j,k,a′ It can be determined by the following formula (8):

[0144] L i,j,k,a′ =L 物体置信度 +w′*(L 物体分类 +L 边界框 ) (8)

[0145] In formula (8), (i, j, k) represents the position coordinates of the spatial point where the anchor box a′ is attached, i, j, k are all integers greater than or equal to 0, w′ represents the detection flag, and when the intersection over union (IoU) between the anchor box a′ and a certain annotated bounding box in the annotation information of the reference 3D image is greater than any other anchor box, the task of detecting the object is undertaken by the anchor box a′, w′=1, otherwise w′=0, L 物体置信度 and L 边界框 It can be determined by the mean square error (MSE), L 物体分类 It can be determined by cross entropy loss.

[0146] In one possible implementation, L 物体置信度 It can be determined by the following formula (9):

[0147] L 物体置信度 =(σ(t′ o )-IoU) 2 (9)

[0148] In formula (9), t′ o represents the object confidence corresponding to the anchor box a′, and IoU represents the intersection over union ratio between the anchor box a′ and a certain labeled bounding box in the annotation information of the reference 3D image.

[0149] In one possible implementation, L 边界框 It can be determined by the following formula (10):

[0150] L 边界框 =(σ(t′ x )-σ(t″ x )) 2 +(σ(t′ y )-σ(t″ y )) 2 +(σ(t′ z )-σ(t″ z )) 2 +(t′ w -t″ w ) 2 +(t′ h -t″ h ) 2 +(t′ d -t″ d ) 2 (10)

[0151] In formula (10), t′ x ,t′ y ,t′ z ,t′ w ,t′ h ,t′ d represents the transformation parameter corresponding to the anchor box a′, t″ x ,t″ y ,t″ z ,t″ w ,t″ h ,t″ d represents the transformation parameters corresponding to the annotated bounding box, which can be determined by the following methods: x ) = b′ x -a′ x ;σ(t″ y ) = b′ y -a′ y ;σ(t″ z ) = b′ z-a′ z ; Among them, (a′ x ,a′ y ,a′ z ) represents the spatial position coordinate of the upper left front vertex of the anchor box a′, a′ w ,a′ h ,a′ d represents the three side lengths of the anchor box a′, (b′ x ,b′ y ,b′ z ) represents the spatial position coordinates of the upper left front vertex of the labeled bounding box, b′ w ,b′ h ,b′ d Indicates the three sides of the label bounding box.

[0152] For any reference 3D image, after determining the detection losses of each anchor frame corresponding to the reference 3D image, the sum of the detection losses of all anchor frames corresponding to the reference 3D image can be determined as the detection loss corresponding to the reference 3D image.

[0153] For example, the number of preset anchor frame types is 8, and the spatial size of the feature maps attached to all anchor frames corresponding to the reference 3D image (i.e., the fifth feature map obtained after the reference 3D image is processed) is (24, 24, 64). The detection loss L corresponding to the reference 3D image can be determined by the following formula (11):

[0154]

[0155] In formula (11), m represents the mth anchor box attached to the spatial point (i, j, k), and m is an integer greater than or equal to 0.

[0156] In a possible implementation, when the sparse convolutional neural network is adjusted according to the detection results of all reference 3D images, the sum of the detection losses corresponding to all reference 3D images can be determined as the network loss of the sparse convolutional neural network.

[0157] In a possible implementation, when the sparse convolutional neural network is adjusted respectively according to the detection results of each reference 3D image, the detection loss corresponding to each reference 3D image can be determined as the network loss of the sparse convolutional neural network.

[0158] In one possible implementation, an optimizer can also be used when training a sparse convolutional neural network. For example, a stochastic gradient descent (SGD) algorithm with a learning rate of 0.001, a momentum parameter of 0.9, and a weight decay parameter of 0.005 can be used as an optimizer to improve the training speed and effect.

[0159] In a possible implementation, when the network loss of the sparse convolutional neural network is reduced to a certain level or converged within a certain threshold, the training can be terminated to obtain a trained sparse convolutional neural network. It should be understood that the training termination condition can also be other conditions, which are not limited in the present disclosure.

[0160] Fig.10 A schematic diagram showing the processing process of a 3D object detection method based on a sparse convolutional neural network according to an embodiment of the present disclosure. The sparse convolutional neural network may include a preprocessing subnetwork, a sparse convolutional subnetwork, and a detection subnetwork. Fig.10 As shown, when object detection is performed on a 3D image reconstructed by X-rays and having multiple channels with physical meanings, first, in step S501, channel selection is performed on the 3D image to be detected to obtain a third feature map including three channels of density, atomic number and electron density of the material constituting the object; in step S502, the third feature map is normalized and resized to obtain a fourth feature map; in step S503, feature extraction is performed on the fourth feature map through a preprocessing subnetwork to obtain a first feature map;

[0161] In step S504, the first feature map may be subjected to three residual sparse convolutions through the first convolution subnetwork of the sparse convolution subnetwork to obtain a sixth feature map; in step S505, the sixth feature map may be subjected to feature extraction through the second convolution subnetwork (i.e., the U-shaped network) of the sparse convolution subnetwork to obtain a second feature map;

[0162] After obtaining the second feature map, in step S506, according to the preset number of anchor box types and the preset number of object categories, the second feature map can be subjected to feature extraction through the detection subnetwork to obtain a fifth feature map, where the fifth feature map is in a dense storage format, and each spatial point in the fifth feature map corresponds to multiple anchor boxes, each anchor box corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category; in step S507, the object detection result of the 3D image is determined based on the multiple anchor boxes in the fifth feature map, the transformation parameters corresponding to each anchor box, the object confidence, and the probability that the object belongs to each category.

[0163] According to the embodiments of the present disclosure, the important characteristics of global sparseness and local density of 3D images reconstructed by X-rays can be utilized, and combined with sparse storage formats and sparse operations, a sparse convolutional neural network that can perform end-to-end object detection on 3D images is constructed. End-to-end object detection on 3D images based on the sparse convolutional neural network can save a lot of computing resources, simplify the detection process, and improve the detection speed. It can also make full use of the intrinsic 3D structure of the data during detection, greatly improving the accuracy of detection.

[0164] It should be noted that, although the above embodiment is used as an example to introduce the 3D object detection method based on the sparse convolutional neural network, those skilled in the art will understand that the present disclosure should not be limited thereto. In fact, the user can flexibly set each step according to personal preferences and / or actual application scenarios, as long as it complies with the technical solution of the present disclosure.

[0165] Fig.11 FIG. 1 is a block diagram of a 3D object detection device based on a sparse convolutional neural network according to an embodiment of the present disclosure. The sparse convolutional neural network may include a preprocessing subnetwork, a sparse convolutional subnetwork, and a detection subnetwork. Fig.11 As shown, the device comprises:

[0166] A preprocessing module 100 is used to preprocess the 3D image to be detected through the preprocessing sub-network to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays;

[0167] A feature extraction module 200, configured to extract features from the first feature map through the sparse convolutional sub-network to obtain a second feature map;

[0168] The detection module 300 is used to detect the second feature map through the detection subnetwork to obtain the object detection result of the 3D image, and the object detection result includes the boundary information of the object, the category of the object and the object confidence.

[0169] In a possible implementation, the preprocessing module 100 includes:

[0170] A first feature extraction submodule is used to extract features from the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, which respectively represent the density, atomic number and electron density of the material constituting the object;

[0171] A normalization processing submodule, used for performing normalization processing and size adjustment on the third feature map to obtain a fourth feature map;

[0172] The second feature extraction submodule is used to extract features from the fourth feature map through the preprocessing subnetwork to obtain a first feature map of the 3D image to be detected, and the preprocessing subnetwork at least includes a submanifold sparse convolution layer.

[0173] The present disclosure also provides a 3D object detection device based on a sparse convolutional neural network, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the above method.

[0174] The present disclosure also provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above method when executed by a processor.

[0175] Fig.12 A block diagram of a 3D object detection device 800 based on a sparse convolutional neural network according to an embodiment of the present disclosure is shown. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0176] Reference Fig.12 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0177] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0178] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0179] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0180] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0181] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0182] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0183] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0184] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0185] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0186] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the device 800 to perform the above method.

[0187] Fig.13 FIG. 1 is a block diagram of a 3D object detection apparatus 1900 based on a sparse convolutional neural network according to an embodiment of the present disclosure. For example, the apparatus 1900 may be provided as a server. Fig.13, the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0188] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output (I / O) interface 1958. The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2000. TM , MacOS X TM , Unix TM ,Linux TM , FreeBSD TM or similar.

[0189] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.

[0190] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0191] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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 static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0192] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0193] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0194] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0195] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0196] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0197] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0198] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A 3D object detection method based on sparse convolutional neural network, characterized in that: The sparse convolutional neural network includes a preprocessing subnetwork, a sparse convolutional subnetwork and a detection subnetwork, and the method includes: Preprocessing the 3D image to be detected by the preprocessing subnetwork to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays; Performing feature extraction on the first feature map through the sparse convolutional sub-network to obtain a second feature map; By means of the detection subnetwork, the second feature map is detected to obtain an object detection result of the 3D image, wherein the object detection result includes boundary information of the object, the category of the object, and the object confidence; The preprocessing sub-network is used to preprocess the 3D image to be detected to obtain a first feature map, including: extracting features from the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, which respectively represent the density, atomic number and electron density of the material constituting the object; normalizing and resizing the third feature map to obtain a fourth feature map; extracting features from the fourth feature map through the preprocessing sub-network to obtain a first feature map of the 3D image to be detected; The detecting the second feature map by the detection subnetwork to obtain the object detection result of the 3D image includes: extracting features from the second feature map by the detection subnetwork according to the number of types of preset anchor frames and the number of preset object categories to obtain a fifth feature map, wherein the fifth feature map is in a dense storage format, and each spatial point in the fifth feature map corresponds to a plurality of anchor frames, each anchor frame corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category; determining the object detection result of the 3D image according to the plurality of anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence, and the probability that the object belongs to each category; Wherein, determining the object detection result of the 3D image according to the multiple anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence and the probability that the object belongs to each category includes: for any anchor frame, transforming the anchor frame according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame; determining the object score corresponding to the detection frame according to the object confidence corresponding to the anchor frame; when the object score is greater than or equal to a preset score threshold, determining the boundary information of the detected object according to the detection frame; determining the detected object confidence and the category of the object according to the object confidence corresponding to the anchor frame and the probability that the object belongs to each category; Among them, the sparse convolution subnetwork includes a first convolution subnetwork and a second convolution subnetwork, the second convolution subnetwork is a U-type network, and the feature extraction of the first feature map through the sparse convolution subnetwork to obtain the second feature map includes: performing residual sparse convolution on the first feature map through the first convolution subnetwork to obtain a sixth feature map; performing feature extraction on the sixth feature map through the second convolution subnetwork to obtain a second feature map.

2. The method according to claim 1, characterized in that The fourth feature map is in a sparse storage format, and the sparsely stored spatial coordinates are separated from the channel features.

3. A 3D object detection device based on a sparse convolutional neural network, characterized in that: The sparse convolutional neural network includes a preprocessing subnetwork, a sparse convolutional subnetwork and a detection subnetwork, and the device includes: A preprocessing module, used for preprocessing the 3D image to be detected through the preprocessing sub-network to obtain a first feature map, wherein the 3D image to be detected is obtained by reconstructing the object to be detected by X-rays; A feature extraction module, used to extract features from the first feature map through the sparse convolutional sub-network to obtain a second feature map; A detection module, configured to detect the second feature map through the detection subnetwork to obtain an object detection result of the 3D image, wherein the object detection result includes boundary information of the object, the category of the object, and the object confidence; Wherein, the preprocessing module includes: A first feature extraction submodule is used to extract features from the 3D image to be detected to obtain a third feature map, wherein the third feature map includes three channels, which respectively represent the density, atomic number and electron density of the material constituting the object; A normalization processing submodule, used for performing normalization processing and size adjustment on the third feature map to obtain a fourth feature map; A second feature extraction submodule, configured to perform feature extraction on the fourth feature map through the preprocessing subnetwork to obtain a first feature map of the 3D image to be detected; The detecting the second feature map by the detection subnetwork to obtain the object detection result of the 3D image includes: extracting features from the second feature map by the detection subnetwork according to the number of types of preset anchor frames and the number of preset object categories to obtain a fifth feature map, wherein the fifth feature map is in a dense storage format, and each spatial point in the fifth feature map corresponds to a plurality of anchor frames, each anchor frame corresponds to a transformation parameter, an object confidence, and a probability that the object belongs to each category; determining the object detection result of the 3D image according to the plurality of anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence, and the probability that the object belongs to each category; Wherein, determining the object detection result of the 3D image according to the multiple anchor frames, the transformation parameters corresponding to each anchor frame, the object confidence and the probability that the object belongs to each category includes: for any anchor frame, transforming the anchor frame according to the transformation parameters corresponding to the anchor frame to obtain a detection frame corresponding to the anchor frame; determining the object score corresponding to the detection frame according to the object confidence corresponding to the anchor frame; when the object score is greater than or equal to a preset score threshold, determining the boundary information of the detected object according to the detection frame; determining the detected object confidence and the category of the object according to the object confidence corresponding to the anchor frame and the probability that the object belongs to each category; Among them, the sparse convolution subnetwork includes a first convolution subnetwork and a second convolution subnetwork, the second convolution subnetwork is a U-type network, and the feature extraction of the first feature map through the sparse convolution subnetwork to obtain the second feature map includes: performing residual sparse convolution on the first feature map through the first convolution subnetwork to obtain a sixth feature map; performing feature extraction on the sixth feature map through the second convolution subnetwork to obtain a second feature map.

4. The device according to claim 3, characterized in that The preprocessing subnetwork includes at least a submanifold sparse convolutional layer.

5. A 3D object detection device based on a sparse convolutional neural network, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method described in claim 1 or 2.

6. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to claim 1 or 2 is implemented.

Citation Information

Patent Citations

  • Safety detection apparatus and detection method thereof

    CN105759318A

  • Object detection method, neural network training method, devices and electronic apparatus

    CN108229455A

  • Image detection method and device, equipment and computer readable storage medium

    CN111046980A

  • Object detection and classification in images

    US20170206431A1