Target detection method and device in driving scene, medium and product
The event camera collects data and processes it using a pulse neural network. Combined with the feature extraction module and YOLOX detection head, it solves the problem of insufficient target detection capabilities of traditional methods in complex scenes and achieves efficient and highly accurate target detection.
Patent Information
- Application Number
- CN202410784760.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Existing target detection methods perform poorly in complex scenes such as overexposure, low light, and high-speed motion. The low-quality image data generated by traditional cameras reduces the ability of the detection model. The asynchronous data processing of event cameras has the problem of information loss. .
Event cameras are used to collect data, and time-related asynchronous event data are directly processed through spiking neural networks (SNNs), using feature extraction modules and YOLOX detection head modules, including region merging blocks, spiking self-attention blocks, multi-layer perceptron blocks and Temporal memory blocks of spiking neurons for target detection.
It improves the accuracy and calculation efficiency of target detection, reduces energy consumption, and is suitable for fast-moving target detection in driving scenarios.
Smart Images

Figure CN118609090A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of target detection, and in particular to a target detection method, device, medium and product in a driving scenario. Background Art
[0002] Object detection plays a vital role in many fields, including autonomous driving, drone intelligent patrol and navigation, and is of great significance in modern society. Existing literature mainly focuses on using image data generated by RGB cameras as input to detection models. However, such methods fail to address many limitations faced by object detection tasks. For example, traditional cameras produce low-quality image data in challenging scenarios involving overexposure, low-light conditions, and high-speed motion, which greatly reduces the ability and performance of detection models.
[0003] Event cameras, such as DVS and ATIS, offer significant advantages over RGB cameras. These cameras capture brightness changes as explicit, time-stamped events, providing precise information about the pixel location and polarity of these changes. Event cameras operate at sub-millisecond intervals, generating a large number of asynchronous events, ensuring that absolute intensity information of moving targets is captured based on rapid changes in light intensity. Event cameras are therefore naturally suited for detecting fast-moving objects.
[0004] The asynchronous nature of event representation poses a challenge to deep learning frameworks and requires extensive preprocessing. However, some studies have addressed this issue by converting discrete asynchronous events into an image-like format, which sacrifices inter-frame temporal information in tensors across multiple channels, compromising the comprehensiveness of the information. Compared to traditional deep learning methods, Spiking Neural Networks (SNNs), inspired by the structure and operation of the human brain, offer higher computational efficiency and lower energy consumption. As networks that are inherently capable of processing time-dependent asynchronous event data, SNNs operate directly on spike input sequences without the need for tedious preprocessing of the data produced by event cameras. Therefore, spiking neural networks have shown great potential in object detection scenarios involving the use of event data as input.
[0005] Currently, object detection based on event cameras and SNNs is not fully explored. Summary of the invention
[0006] The purpose of the present invention is to provide a target detection method, device, medium and product in a driving scenario to improve the accuracy of target detection.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A target detection method in a driving scenario, comprising:
[0009] Acquiring event data in a driving scene; the event data is collected by an event camera;
[0010] Converting the event data into a format to obtain processed event data;
[0011] According to the processed event data, a target bounding box, target category and confidence of the processed event data are determined using a target detection model; wherein the target detection model is obtained by training an initial model using a training data set; the training data set includes event data in a training driving scenario and corresponding target bounding box labels, target categories and confidences; the initial model includes a feature extraction module and a YOLOX detection head module; the feature extraction module includes a region merging block, a pulse self-attention block, a multi-layer perceptron block and a temporal memory pulse neuron block connected in sequence.
[0012] Optionally, the initial model is trained using the training data set, specifically including:
[0013] Construct an event dataset for driving scenarios for training;
[0014] Preprocessing the event data set to obtain a processed event data set;
[0015] Dividing the processed event data set into a training data set and a test data set;
[0016] Based on the training data set and the test data set, the initial model is trained using a cross-validation method to obtain a target detection model.
[0017] Optionally, preprocessing the event data set to obtain a processed event data set specifically includes:
[0018] The event data sets whose bounding box side length and diagonal length are less than the corresponding set thresholds are deleted to obtain a filtered event data set;
[0019] Scaling the event data with a resolution greater than a set resolution in the filtered event data set to obtain a scaled event data set;
[0020] The scaled event data corresponding to the categories whose occurrence frequency is less than the set frequency are deleted to obtain a deleted event data set;
[0021] The deleted event data set is format converted to obtain a processed event data set.
[0022] Optionally, the spiking self-attention block comprises a first linear projection layer, three first batch normalization layers, three first spiking neuron layers, a second spiking neuron layer, a second linear projection layer, a second batch normalization layer, and a third spiking neuron layer;
[0023] The first linear projection layer is connected to three first batch normalization layers respectively; one first batch normalization layer is connected to one first pulse neuron layer; three first pulse neuron layers are all connected to the second pulse neuron layer; the second pulse neuron layer is connected to the second linear projection layer; the second linear projection layer is connected to the second batch normalization layer; the second batch normalization layer is connected to the third pulse neuron layer.
[0024] Optionally, the temporal memory spike neuron block includes a first convolutional layer, a third batch normalization layer, a fourth spike neuron layer, a fourth batch normalization layer, a fifth spike neuron layer, a second convolutional layer, a fifth batch normalization layer and a sixth spike neuron layer;
[0025] The first convolutional layer, the third batch normalization layer and the fourth pulse neuron layer are connected in sequence; the output of the fourth pulse neuron layer is connected to the fourth batch normalization layer through two residual links; the fourth batch normalization layer is connected to the fifth pulse neuron layer; the fifth pulse neuron layer is connected to the second convolutional layer through a residual link; the second convolutional layer, the fifth batch normalization layer and the sixth pulse neuron layer are connected in sequence.
[0026] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned target detection method in a driving scenario.
[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned target detection method in a driving scenario.
[0028] A computer program product includes a computer program, which implements the above-mentioned target detection method in a driving scenario when executed by a processor.
[0029] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0030] The present invention provides a method, device, medium and product for target detection in a driving scene, by acquiring event data in a driving scene; the event data is collected by an event camera; the event data is formatted to obtain processed event data; according to the processed event data, a target detection model is used to determine the target bounding box, target category and confidence of the processed event data; wherein the target detection model is obtained by training an initial model using a training data set; the training data set includes event data in a driving scene for training and corresponding target bounding box labels, target categories and confidences; the initial model includes a feature extraction module and a YOLOX detection head module; the feature extraction module includes a region merging block, a pulse self-attention block, a multi-layer perceptron block and a temporal memory pulse neuron block connected in sequence. The present invention collects data using an event camera and uses a pulse neural network to identify a target bounding box and a target category, thereby improving the accuracy of target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic diagram of a target detection method in a driving scenario provided by Embodiment 1 of the present invention;
[0033] Figure 2 Training flow chart for target detection model;
[0034] Figure 3 This is a schematic diagram of the target detection model structure;
[0035] Figure 4 It is a structural diagram of feature extraction module;
[0036] Figure 5 Schematic diagram of the pulse self-attention block structure;
[0037] Figure 6 This is a schematic diagram of the structure of a sequential memory spike neuron;
[0038] Figure 7 The following is a graph of the comparison results;
[0039] Figure 8 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The purpose of the present invention is to provide a target detection method, device, medium and product in a driving scenario to improve the accuracy of target detection.
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Example 1
[0044] like Figure 1 As shown, the target detection method in the driving scene in this embodiment includes:
[0045] Step 101: Acquire event data in a driving scenario; the event data is collected by an event camera.
[0046] Step 102: Convert the format of the event data to obtain processed event data.
[0047] Step 103: According to the processed event data, the target bounding box, target category and confidence of the processed event data are determined using the target detection model; wherein the target detection model is obtained by training the initial model using the training data set; the training data set includes event data in the training driving scene and the corresponding target bounding box label, target category and confidence; the initial model includes a feature extraction module and a YOLOX detection head module; the feature extraction module includes a region merging block, a pulse self-attention block, a multi-layer perceptron block and a temporal memory pulse neuron block connected in sequence. In practical applications, the target category can be a car, a pedestrian, a person riding a bicycle, a motorcycle or other riding tool, a bicycle, a motorcycle, a train, a truck, a bus, a traffic sign or a traffic light, etc.
[0048] Confidence has two main functions:
[0049] 1. Predict the probability of the object existing: The confidence value indicates how reliable the model is in detecting the object in the prediction box. Specifically, the confidence is the product of two prediction values: the confidence probability that the object exists and the confidence probability that the classification is correct. The confidence probability that the object exists reflects the possibility that the object actually exists in the given prediction box, while the confidence probability that the classification is correct reflects the degree of match between the predicted object category and the true category.
[0050] 2. Filter low-quality predictions: In object detection tasks, the model may generate many low-quality predictions that may not match the actual target or have low confidence. By setting a confidence threshold, these low-quality predictions can be filtered out, leaving only those prediction boxes with high confidence and more likely to be correctly detected. This helps reduce false detections and improve detection accuracy.
[0051] As an optional implementation, the pulse self-attention block includes a first linear projection layer, three first batch normalization layers, three first pulse neuron layers, a second pulse neuron layer, a second linear projection layer, a second batch normalization layer and a third pulse neuron layer.
[0052] The first linear projection layer is connected to three first batch normalization layers respectively; one first batch normalization layer is connected to one first pulse neuron layer; three first pulse neuron layers are all connected to the second pulse neuron layer; the second pulse neuron layer is connected to the second linear projection layer; the second linear projection layer is connected to the second batch normalization layer; the second batch normalization layer is connected to the third pulse neuron layer.
[0053] As an optional implementation, the temporal memory pulse neuron block includes a first convolutional layer, a third batch normalization layer, a fourth pulse neuron layer, a fourth batch normalization layer, a fifth pulse neuron layer, a second convolutional layer, a fifth batch normalization layer and a sixth pulse neuron layer.
[0054] The first convolutional layer, the third batch normalization layer and the fourth pulse neuron layer are connected in sequence; the output of the fourth pulse neuron layer is connected to the fourth batch normalization layer through two residual links; the fourth batch normalization layer is connected to the fifth pulse neuron layer; the fifth pulse neuron layer is connected to the second convolutional layer through a residual link; the second convolutional layer, the fifth batch normalization layer and the sixth pulse neuron layer are connected in sequence.
[0055] As an optional implementation, Figure 2 and Figure 3 As shown, the initial model is trained using the training data set, including:
[0056] (1) Construct an event dataset for driving scenarios for training.
[0057] (2) Preprocessing the event data set to obtain a processed event data set.
[0058] In practical applications, event data sets collected by event cameras in real driving scenarios are preprocessed. Data filtering is performed on abnormal data, including incorrect target bounding boxes and inappropriate target bounding boxes; data sets with too large resolutions are scaled; target bounding boxes of small batches are deleted relative to target bounding boxes of large batch categories. A suitable time window is selected to convert discrete events into a format that is easy to train, and the time window is selected as 10ms.
[0059] Specifically, the preprocessing process is as follows:
[0060] The event camera collects a large number of discrete asynchronous events, which can basically be represented as a tuple (x k ,y k ,t k ,p k ). When the pixel (x k ,y k ) is the logarithmic intensity value lnL(x k ,y k ,t k ) at time point t k Any time interval Δt from the beginning k When the value exceeds the threshold K, an event is triggered. The event triggering process can be expressed as follows:
[0061] lnL(x k ,y k ,t k +Δt k )-lnL(x k ,y k ,t k )≥p k K.
[0062] In the above formula, p k Indicates event e k The polarity of can take the value of 1 or -1, indicating the change in light intensity, that is, whether it increases or decreases.
[0063] The entire dataset consists of a large number of continuous events in the time domain. At the same time, RGB cameras are still used to collect frame-based 2D images. The object bounding box of the dataset is generated based on the optimal frame-based object detection box.
[0064] The event data sets whose bounding box side length and diagonal length are less than the corresponding set threshold are deleted to obtain the filtered event data set. In practical applications, for different data sets, the bounding box side length and diagonal length less than a certain pixel value will be regarded as unreasonable bounding boxes, affecting the performance of the model, and will be deleted.
[0065] The event data with a resolution greater than the set resolution in the filtered event data set is scaled to obtain a scaled event data set. In practical applications, for a data set with too high a resolution, for example, 1Mpx, a resolution of 720×1280, it will be proportionally reduced to half of the original.
[0066] The scaled event data corresponding to the categories with a frequency less than the set frequency are deleted to obtain the deleted event data set. In practical applications, for categories with few label categories, that is, targets with a very low frequency of occurrence, such as traffic lights, trains, motorcycles, etc., due to the inconsistent number of categories, the model will be biased during the learning process, so they will be regarded as inappropriate labels and deleted.
[0067] The deleted event data set is format converted to obtain a processed event data set.
[0068] In addition, the continuous event data in the time domain cannot be directly sent to the model for training because the time window is too large. Therefore, it should be divided according to the appropriate time window. The expression of this process is as follows:
[0069]
[0070] The above formula describes the a ,t b ) for a set of events ε, where t k Between a and t b δ(·) is the Dirac function. The value of T depends on the number of discrete time steps selected, i.e. the time window mentioned above, which is fixed at 10ms.
[0071] After the above process, a four-dimensional tensor E∈[2,T,H,W] is obtained, where T,H,W represent the aggregation time, the height and width after data conversion respectively. The first dimension representing polarity is merged to obtain a new tensor E∈[T,H,W]. This merging operation is designed to ensure the order of frames in the time dimension, which is consistent with the computational properties of SNNs.
[0072] Since the dimensions representing polarity are merged, the two polarity information are mixed together, so the impact of dimension merging is alleviated by using the spatial mapping kernel. The expression of this process is as follows:
[0073]
[0074] In the above formula, k(x,y,t) represents the kernel function. However, this kernel function is too complicated to be designed manually, so a convolutional layer is used to learn the process and complete the spatial mapping.
[0075] (3) Divide the processed event data set into a training data set and a test data set.
[0076] (4) Based on the training data set and the test data set, the initial model is trained using a cross-validation method to obtain a target detection model.
[0077] After preprocessing, the obtained tensor will be used as the input of the feature extraction module. Before that, the input is encoded with relative position. Figure 4 shown.
[0078] The feature extraction module consists of four identical learning stages based on spiking neural networks. Each stage consists of a set of stacked blocks, namely: patch merging (PM) block, spiking self-attention (SSA) block, multi-layer perceptron (MLP) block and a temporal memory spiking neuron (TMSN) block. The processing process specifically includes the following steps:
[0079] Step 1: Before the data obtained after data preprocessing and data conversion is input into the feature extraction module, an additional relative position encoding block is implemented to generate relative position embedding. This relative position embedding is added to the tensor after data preprocessing and data conversion.
[0080] Step 2: Taking the first learning stage as an example, the input is fed into the PM block, which plays a key role in capturing spatial information and merging adjacent small patches into larger patches. This merging process doubles the size of each patch, increasing the receptive field and facilitating multi-scale feature extraction. Therefore, the PM block implements downsampling of the input tensor. In the first learning stage, its PM block concatenates the features from each group of adjacent patches, resulting in a 2x reduction in the resolution of the tensor in the height (H) and width (W) dimensions, and a 4x reduction overall.
[0081] Similarly, in the second learning phase, the PM block performs the same block merging operation, resulting in a tensor resolution of H / 8 × W / 8. This process continues in the third and fourth learning phases, resulting in tensors of resolutions H / 16 × W / 16 and H / 32 × W / 32, respectively.
[0082] Step 3: SSA processes the output feature map from the PM block, denoted by X. Figure 5As shown, this operation produces three matrices, denoted as Q, K, and V. Generating Q, K, and V involves passing the input through a linear projection layer, a batch normalization (BN) layer, and a LIF (Leaky Integrate-and-Fire, LIF) spiking neuron layer. Spiking neurons selectively enhance salient features while weakening weaker features. The expression of this process is as follows:
[0083] Q′=XW Q
[0084] K′=XW K .
[0085] V′=XW V
[0086] Q=LIF Q (BN(Q′))
[0087] K=LIF K (BN(K′)).
[0088] V=LIF V (BN(V′))
[0089] Parameter W Q , W K and W V represents the linear mapping matrix obtained through training. BN represents batch normalization calculation, and LIF Q , LIF K and LIF V represents the feature enhancement operation implemented by using LIF spiking neurons. These operations produce three updated feature matrices: Q, K, and V. The calculation process of SSA is described as follows:
[0090]
[0091] The updated matrices Q, K, and V are scaled by a factor s and input into a LIF neuron layer with a voltage threshold of 0.5, which is different from the other LIF neurons that are set to 1.0. Subsequently, the output passes through a linear projection layer, a BN layer, and another LIF neuron layer to finally form the SSA output. The time complexity of calculating the attention weight matrix can be controlled to the minimum value Min(O(N 2 *d),O(N*d 2 )), where d is the dimension of the head and N is the number of patches.
[0092] The features calculated by the SSA module will be added to the output of the PM module as the input of the next module.
[0093] Step 4: The output obtained in step 3 is passed as input to the MLP module. The role of MLP is to capture hidden related information from the time and space dimensions and introduce more additional learnable parameters.
[0094] Step 5: The output obtained in step 4 is used as input, and X input Indicates that it is passed to the TMSN module, such as Figure 6 As shown in , where s represents the current time domain. However, although the features of the previous time domain are very similar to the features of the current time domain, there is a certain deviation between them. Therefore, a linear projection matrix is used to correct the deviation. The linear projection matrix is denoted by W seq After correction, a memory that can be used to enhance features in the time domain is obtained, represented by V memory Indicates. Finally X input and V memory Add and further extract features. The above process is expressed as follows:
[0095]
[0096] X′ in the above formula is the feature map to be processed next.
[0097] The TMSN module extracts spatiotemporal information from X′. It first applies a BN layer, a LIF activation layer, and a residual connection to obtain an intermediate feature map I. This intermediate feature map is then further processed by a convolutional layer, a BN layer, and a LIF activation layer. The output of the module consists of two components of the LIF layer. The first component is the activated feature denoted as S, which is combined with I through a residual connection to generate the output. The second component is the activated feature V, which serves as the interactive feature of the four time domains of the subsequent sequence. The process is expressed as follows:
[0098]
[0099] In the above formula, S t and V t Produced by the last LIF layer. The process can be represented by the following equation, assuming that the feature map obtained by the LIF layer is denoted as I′. The operation Concat refers to the stacking of 2D feature maps along the time axis.
[0100]
[0101] In the above equation, H t and V t denote the membrane voltage before and after the trigger pulse, respectively. The parameter τ denotes the membrane time constant and is set to 2. V treset S represents the reset voltage of the neuron layer and is set to 0. t represents the output pulse, Θ(·) represents the Heaviside step function. The variable T corresponds to the total number of time steps in the different step functions.
[0102] Step 6: Finally, the feature maps of different scales in the last three stages of MFE are passed to the YOLOX detection head module, which fuses the features of different scales and finally outputs the bounding box information, category information and confidence information.
[0103] The present invention is trained on existing public datasets. The currently public datasets for driving scenes collected by event cameras include: Gen1, 1Mpx, and DSEC-Detection. Training was completed on the Gen1 and 1Mpx datasets, and results were obtained. The weights obtained by training with the 1Mpx dataset were used to verify the DSEC-Detection dataset, and the final verification results obtained were 0.386 mAP and 0.669 AP. 50 .
[0104] In the gen1 dataset: target categories include car and pedestrian.
[0105] In the 1Mpx dataset: target categories include Car, Pedestrian, Two-wheeler, Truck, Bus, Traffic Sign, and Traffic Light.
[0106] In the DSEC-Detection dataset: target categories include pedestrian, rider, car, bus, truck, bicycle, motorcycle, and train.
[0107] Note: In the experiments on 1Mpx and DSEC-Detection datasets, only the first three categories are retained to avoid the problem of category imbalance during model training (the setting is consistent with previous work).
[0108] Results are compared using mAP and AP 50As shown in Table 1, the method of the present invention has achieved the highest accuracy among the methods that also use pulse neural networks for related research. On the Gen1 dataset, the mAP index is 8.4 percentage points higher than the previous best result. 50 The index increased by 2.6 percentage points. In Table 1, C represents a variable time step. In the three models with different parameter sizes, C is initially (i.e., stage 1) 32, 48, and 64 respectively; as the stage increases, C increases exponentially, i.e., in the three models with different parameter sizes in stage 2, it is 64, 96, and 128; in stage 3, it is 128, 192, and 256; in stage 4, it is 256, 384, and 512. The data in bold represent the best results, and the data in underline represent the suboptimal results.
[0109] Table 1 Comparison results of indicators between different methods
[0110]
[0111] However, other methods have not been verified on the 1Mpx dataset for the following reasons:
[0112] 1. In terms of network structure design, the methods studied in previous work are mainly based on convolutional neural networks, and there is no information aggregation operation in the time domain. This work adopts a hierarchical pulse Transformer structure. At present, the feature extraction ability of the Transformer method is stronger than that of convolutional neural networks of the same level. At the same time, the TMSN module designed exchanges information in the time domain to further improve the feature extraction ability of the model.
[0113] 2. Since the time window is 10ms, the dimension of the tensor after data conversion is E∈[2,T,H,W]. Compared with the tensor dimension E∈[3,H,W] based on ordinary frame images, the memory usage for event data calculation will be T times that of ordinary images (when the channel dimension is pulled to the same scale). At the same time, since the event data itself is very sparse, if no relevant processing is done, the gradient will fluctuate greatly during training and the training will be unstable. Although some information is lost by fusing the polarity dimension, the gradient changes during training are relatively stable, and the detection accuracy is improved.
[0114] like Figure 7As shown in the figure, (A) reflects the change in loss (i.e., the difference between the predicted value and the true value) and the difference in gradient stability (i.e., the fluctuation range of the loss value) of the two methods of retaining the polarity dimension and fusing the polarity dimension during the training process, and (B) reflects the change in the mAP of the detection index of the above two methods. The results show that the polarity dimension fusion method (blue curve in the figure) has more stable gradients, smaller losses, and higher precision during the training process. On the contrary, the polarity dimension retention method (orange curve in the figure) has a larger gradient fluctuation range, larger losses, and lower precision during the training process.
[0115] Finally, an artificial neural network (ANNs) of the same scale was built on the basis of the method of the present invention as a benchmark model, and the energy consumption of the two was calculated respectively. As shown in Table 2, taking the energy consumption of the artificial neural network benchmark model as a unit, it is found that the model of the method of the present invention saves 2.28 times more energy than the artificial neural network of the same magnitude in terms of energy consumption. The calculation method is shown in the following formula.
[0116]
[0117] Wherein, the subscript AC indicates addition, and MAC indicates multiplication and addition. In SNNs, pulse accumulation involves only addition, while ANNs involve multiplication and addition. fr indicates the pulse firing rate, T is the time step, FLOPs indicates the number of floating point operations, and SOPs indicates the number of floating point operations in SNNs. The superscript l indicates the layer in SNNs. On a 45-nm, 32-bit neuromorphic chip, E AC 0.9pJ, E MAC It is 4.6pJ. The subscripts Conv, SSA, and det_head represent the convolution operation, the pulse attention operation, and the operation in the detection head, respectively.
[0118] Table 2 Energy efficiency comparison with the baseline model
[0119]
[0120] Example 2
[0121] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the target detection method in the driving scenario in Example 1.
[0122] Example 3
[0123] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the target detection method in the driving scenario in Example 1.
[0124] Example 4
[0125] A computer program product includes a computer program, which, when executed by a processor, implements the target detection method in the driving scenario in embodiment 1.
[0126] Example 5
[0127] A computer device, which may be a database, may have an internal structure as shown in Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the target detection method in the driving scenario in Example 1 is implemented.
[0128] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.
[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0131] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A target detection method in a driving scenario, It is characterized in that include: Acquiring event data in a driving scene; the event data is collected by an event camera; Converting the event data into a format to obtain processed event data; According to the processed event data, a target bounding box, a target category and a confidence of the processed event data are determined using a target detection model; wherein the target detection model is obtained by training an initial model using a training data set; the training data set includes event data in a training driving scenario and corresponding target bounding box labels, target categories and confidences; the initial model includes a feature extraction module and a YOLOX detection head module; The feature extraction module includes a region merging block, a pulse self-attention block, a multi-layer perceptron block and a temporal memory pulse neuron block which are connected in sequence.
2. The target detection method in a driving scenario according to claim 1, It is characterized in that Use the training data set to train the initial model, including: Construct an event dataset for driving scenarios for training; Preprocessing the event data set to obtain a processed event data set; Dividing the processed event data set into a training data set and a test data set; Based on the training data set and the test data set, the initial model is trained using a cross-validation method to obtain a target detection model.
3. The target detection method in a driving scenario according to claim 2, It is characterized in that Preprocessing the event data set to obtain a processed event data set specifically includes: The event data sets whose bounding box side length and diagonal length are less than the corresponding set thresholds are deleted to obtain a filtered event data set; Scaling the event data with a resolution greater than a set resolution in the filtered event data set to obtain a scaled event data set; The scaled event data corresponding to the categories whose occurrence frequency is less than the set frequency are deleted to obtain a deleted event data set; The deleted event data set is format converted to obtain a processed event data set.
4. The target detection method in a driving scenario according to claim 3, It is characterized in that The spiking self-attention block includes a first linear projection layer, three first batch normalization layers, three first spiking neuron layers, a second spiking neuron layer, a second linear projection layer, a second batch normalization layer, and a third spiking neuron layer; The first linear projection layer is connected to three first batch normalization layers respectively; one first batch normalization layer is connected to one first pulse neuron layer; and three first pulse neuron layers are all connected to the second pulse neuron layer; The second spiking neuron layer is connected to the second linear projection layer; the second linear projection layer is connected to the second batch normalization layer; the second batch normalization layer is connected to the third spiking neuron layer.
5. The target detection method in a driving scenario according to claim 1, It is characterized in that The temporal memory spike neuron block includes a first convolutional layer, a third batch normalization layer, a fourth spike neuron layer, a fourth batch normalization layer, a fifth spike neuron layer, a second convolutional layer, a fifth batch normalization layer, and a sixth spike neuron layer; The first convolutional layer, the third batch normalization layer and the fourth spiking neuron layer are connected in sequence; the output of the fourth spiking neuron layer is connected to the fourth batch normalization layer via two residual links; the fourth batch normalization layer is connected to the fifth spiking neuron layer; The fifth pulse neuron layer is connected to the second convolutional layer via a residual link; the second convolutional layer, the fifth batch normalization layer and the sixth pulse neuron layer are connected in sequence.
6. A computer device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the target detection method in a driving scenario according to any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the target detection method in the driving scenario described in any one of claims 1 to 5 is implemented.
8. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the target detection method in the driving scenario described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Automatic driving scene recognition method, device and system
CN115376104A
Event data processing method, device and system
CN115546248A
Automatic driving target detection method based on OD-YOLO
CN116824543A
Target object identification method and device and nonvolatile storage medium
CN116883971A
Target tracking method and device and storage medium
CN117934540A
