Event camera motion segmentation method based on depth hypergraph clustering
By constructing a spatio-temporal motion hypergraph based on the deep hypergraph clustering method, the problem of poor motion segmentation results of traditional methods under highly dynamic illumination and high-speed motion is solved, and the efficient representation and generalization of event cameras in motion segmentation tasks are achieved. sexual enhancement.
Patent Information
- Application Number
- CN202410649974.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional cameras suffer from information loss and blurring in motion segmentation tasks under high dynamic range lighting and high-speed motion conditions. Existing methods based on event cameras are difficult to effectively mine the high-order relationships and spatiotemporal characteristics of event data, resulting in poor motion segmentation results. .
A method based on deep hypergraph clustering is used to construct a spatio-temporal motion hypergraph, learn node features through graph convolutional neural network and use self-trained graph clustering to enhance node cohesion, achieve motion segmentation of event cameras, and retain the integrity of event streams. Temporal resolution and mining motion information.
It improves the high-order representation ability of event data and the generalization of motion segmentation, enhances the utilization of temporal information, and achieves more accurate motion segmentation effects.
Smart Images

Figure CN118570248A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision, and in particular to a method for high-order data structure representation of event data, deep hypergraph clustering and motion segmentation, and specifically to a motion segmentation method for an event camera based on deep hypergraph clustering. Background Art
[0002] Motion segmentation is an important research topic in computer vision, which can help the development of AR and self-awareness-centered smart wearable devices. The purpose of motion segmentation is to segment the moving area (IMO, Independent Moving Object) and the non-moving area (i.e., background) in the event sequence of the scene where the target is located. With the development of deep learning, the segmentation method based on traditional cameras has been significantly developed. However, when faced with high dynamic range lighting and high-speed moving targets in actual scenes, the above methods will produce imaging blur (i.e., caused by information loss in poor lighting) and motion blur (i.e., caused by high-speed movement of the target), which is mainly limited by the frame imaging principle of traditional cameras.
[0003] Unlike traditional cameras, event cameras are novel neuromorphic visual sensors inspired by the working mode of neurons in the human brain. They asynchronously capture pixel-level intensity changes in the form of "events". Due to their sensing mechanism, event cameras have almost no motion blur and have very high temporal resolution. In addition, event cameras require less power and memory. Therefore, event-based motion segmentation tasks are of great practical significance. Most current methods stack asynchronous discrete event data into frames for processing, but this loses the high temporal resolution and spatiotemporal characteristics of the event data itself, while the high-order relationships such as the attribute information itself and the hidden motion information in the event data are extremely important for the motion segmentation task. Therefore, the present invention proposes to implement the motion segmentation task based on deep hypergraph clustering. The following introduces the relevant background technology in this field.
[0004] (1) Event processing method based on event graph
[0005] In order to facilitate the migration of CNN-based methods, most of the existing event-based learning algorithms use event stacking when processing event data. However, these methods lose the high temporal resolution of events and ignore the asynchronous discrete characteristics of event data. More and more researchers have begun to process events based on graph construction. Mondal et al. (Moving object detection for event-based vision using graph spectral clustering) regard event points as nodes of the graph, and use the KNN method to connect the three points closest to the node into edges to construct an event graph. Li et al. (Graph-based asynchronous event processing for rapid object recognition) use a sliding window to connect all points in the window that are less than a set threshold, without limiting the number of edges to a certain node. Zhou et al. (Event-based motion segmentation with spatio-temporal graph cuts) construct an event-based spatiotemporal graph. Treating event points as nodes in the graph, each event is connected to the two nearest event points at the same pixel and adjacent pixel positions in the Delaunay triangulation constructed by the active pixel position to form an edge graph. However, in ordinary graphs, one edge can only connect two nodes, and event-based motion segmentation needs to dig out numerous event points with consistent motion in time and space from the input event sequence, and distinguish them from background event points, which requires taking into account the high-order relationships such as self-attribute information and hidden motion information in the event data. Different from ordinary graphs, each hyperedge of a hypergraph can connect two or more nodes. As a general framework that can represent hidden layer representations, hypergraphs can consider high-order data structures, so as to better handle complex motion correlations in event data. Therefore, the present invention constructs a deep hypergraph based on events, and realizes event-based motion segmentation by clustering.
[0006] (2) Motion segmentation method based on event graph
[0007] The processing method based on event graph can mine the topological information in asynchronous event data, and different tasks have different processing methods after the event graph is constructed. In the motion segmentation task, the processing methods after the event point constructs the event graph are currently divided into two categories. One is based on graph node classification, and the other is to use the graph for clustering operations. Mitrokhin et al. (Learning visual motion segmentation using event surfaces) believe that the essence of the motion segmentation task is to classify each event point. Mondal et al. (Moving object detection for event-based vision using graph spectral clustering) identify different moving targets through traditional graph clustering. However, traditional clustering methods are difficult to effectively represent complex data associations. The present invention uses the timestamp and polarity of the event to group asynchronous events, mine the motion information in the event data to construct a hypergraph, and realize event-based motion segmentation through the method of deep hypergraph self-clustering. Summary of the invention
[0008] The present invention designs a motion segmentation algorithm for an event camera based on deep hypergraph clustering, fully mines the motion information of events, and constructs a spatiotemporal motion hypergraph in combination with the spatiotemporal characteristics of events. This spatiotemporal motion hypergraph retains the temporal resolution of the event stream, can represent the high-order data structure of events within a time interval, and improves the high-order representation ability of event data; it enhances the utilization of timing information in the algorithm, which is crucial for the motion segmentation task. The event-based motion segmentation problem is converted into a hypergraph cutting problem, and a motion segmentation method for an event camera based on deep hypergraph clustering is implemented. According to the standard that the distance between event clusters after motion segmentation is small and the distance within the cluster is large, clustering is completed using a self-designed deep hypergraph clustering module, that is, motion segmentation of the input event sequence is implemented. The present invention uses a graph convolutional neural network to learn the feature embedding representation of nodes, while enhancing the cohesion between nodes in the same cluster through a self-trained graph clustering, thereby improving the generalization of the algorithm.
[0009] The technical solution of the present invention:
[0010] A motion segmentation method based on deep hypergraph clustering, the steps are as follows:
[0011] (1) Constructing an event spatiotemporal motion hypergraph that integrates motion features
[0012] This method provides an event-based hypergraph construction method, which can represent the high-order data structure of events within a time interval, fully consider the timestamp, polarity and other attribute information of the event data, mine the spatiotemporal characteristics of the event data, analyze the motion information in the event data, and select the motion contour attributes based on optical flow and appearance from the above attribute information as the feature vector of the hypergraph node. This spatiotemporal motion hypergraph retains the temporal resolution of the event flow, can represent the high-order data structure of events within a time interval, improve the high-order representation ability of event data, and enhance the use of timing information in the algorithm, which is crucial for motion segmentation tasks.
[0013] Assuming that the given event sequence data
[0014]
[0015] Among them, (x k ,y k ) is the pixel coordinate of the event, t k is the timestamp of the event, p k = ± 1 is the polarity of the event, k represents the kth event point in the event sequence data; the construction of the hypergraph node combines the timestamp t of each event point k , polarity information p k , space-time information (x k ,y k ,t k ) and the motion information mined therefrom; defining the motion model of a single event point based on optical flow and motion speed attributes
[0016] Then, the feature embedding of all nodes in the event hypergraph is obtained It is expressed as follows:
[0017]
[0018] Among them, uk and vk represent the optical flow information of a single event point, i.e., a single node, in the horizontal and vertical directions respectively. The velocity attribute representing the velocity of a single event point on the composed local event surface;
[0019] Given the feature embeddings of all nodes Construct an event spatiotemporal motion hypergraph G = {V, E, W}, where the node V represents a sample, the hyperedge E represents a sample set containing a variable number of samples, and W(v i ,v j _ represents the weight between any two points on the hyperedge; by randomly selecting events within the time interval as nodes And use the K nearest neighbor algorithm to select K nearest neighbors to form a hyperedge, traverse all nodes to form a hyperedge set of the hypergraph Generate a complete spatiotemporal motion hypergraph G = {V, E, W};
[0020]
[0021] Adj(v)={e1,e2,…,e M}(4)
[0022] Con(e)={v1,v2,…,v N}(5)
[0023] Where Con(e) represents the vertex set of hyperedge e, Adj(v) represents the hyperedge set consisting of all hyperedges containing vertex v, N and M are the number of vertices in hyperedge e and the number of hyperedges containing vertex v;
[0024] (2) Motion Segmentation Based on Deep Hypergraph Clustering
[0025] According to the standard of "small distance between classes and large distance within classes" of event clusters after motion segmentation, a deep hypergraph clustering method is designed. Through a self-training graph clustering, the cohesion between nodes in the same cluster is enhanced, clustering is completed, and the generalization of the algorithm is improved. Formally, the event spatiotemporal motion hypergraph G = {V, E, W} is obtained; the association between samples and hyperedges is constructed from the event spatiotemporal motion hypergraph G, which is defined as the association matrix That is, if v i ∈e i ,but otherwise
[0026] In hypergraph clustering, the hypergraph Laplacian matrix is used to capture the complex relationships between nodes and perform clustering tasks through these relationships; the clustering algorithm uses the eigenvectors of the hypergraph Laplacian matrix to perform; specifically, the second smallest eigenvalue of the hypergraph Laplacian matrix (called the Fiedler value) and its corresponding eigenvector are used to identify natural partitions in the data, thereby achieving clustering;
[0027] The hypergraph Laplacian matrix of the event spacetime motion is defined as:
[0028]
[0029] Among them, D V and D E are the degree matrices of nodes and hyperedges respectively;
[0030] Among them, the hypergraph Laplacian matrix decomposition is obtained:
[0031] Lh=UΛU-1(5)
[0032] Among them, U = [u1,...,un] represents n basis vectors, Λ = diag(λ1,..λq,..,λn) is a diagonal matrix, the size of λq reflects the smoothness of the basis vectors, and the "smoothness" on the hypergraph reflects the similarity of adjacent nodes; motion segmentation based on deep hypergraph clustering is based on the event spatiotemporal motion hypergraph constructed above and the corresponding association matrix H, and achieves the purpose of motion segmentation through the Laplace matrix decomposition of the hypergraph of event spatiotemporal motion.
[0033] Beneficial effects of the present invention:
[0034] (1) Event spatiotemporal motion hypergraph integrating motion features
[0035] This method is based on the event data collected by the event camera, analyzes the motion information in the event data, combines the spatiotemporal characteristics of the event data, and constructs a spatiotemporal graph of the event to improve the representation ability of the event data. This spatiotemporal graph retains the temporal resolution of the event stream and enhances the use of timing information in the algorithm, which is crucial for motion segmentation tasks.
[0036] (2) Motion Segmentation Method Based on Deep Hypergraph Clustering
[0037] According to the standard of "small distance between classes and large distance within classes" of event clusters after motion segmentation, the present invention designs a deep hypergraph clustering method, which transforms the event-based motion segmentation problem into a clustering problem of deep event spatiotemporal motion hypergraph. Through a self-training graph clustering, the cohesion between nodes in the same cluster is enhanced, self-supervised clustering is completed, the generalization of the algorithm is improved, and motion segmentation based on event spatiotemporal motion hypergraph is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is the network structure diagram of the motion segmentation method based on deep hypergraph self-clustering. DETAILED DESCRIPTION
[0039] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.
[0040] like Figure 1 As shown, an event camera motion segmentation method based on deep hypergraph clustering includes dataset preprocessing, network model training and testing.
[0041] The present invention uses the public Carla-Sematic dataset for experiments. The dataset includes event data, RGB data, semantic labels, depth labels, event point labels and other information. A total of 13 different urban scene target categories are collected, including common categories such as roads, buildings, vehicles, pedestrians, etc., which is convenient for subsequent training and integration with actual scenes. The present invention converts each event point (xk ,y k ,t k ) is regarded as the spatiotemporal information of the event, t k is the time information at the nanosecond level, and x k and k represents the spatial resolution, specifically 640×480. To facilitate the calculation of the hyperedges connected by k nearest neighbors, the present invention converts the time t of the event point into k The data is processed into relative timestamps for subsequent operations. To reduce the amount of calculation, the original data is denoised and 20% of the event points are randomly deleted. This operation is simple and effective in reducing the number of event points needed to build the hypergraph calculation.
[0042] In the process of hypergraph construction, each collected event sequence is used as input. After data preprocessing, the parameters are set to construct the hypergraph, where K=5 means that 5 nodes are selected using the K nearest neighbor algorithm to construct a hyperedge, and the hyperedges are connected to construct the hypergraph. The batch size of the model is set to 2. In order to train this network, Adam is used as the optimizer to update the model parameters, and the number of iterations is set to 120 times. The learning rate is initialized to 0.0005, the decay factor of the learning rate is set to 0.2, and it decays every 20 iterations. The model is optimized using KL divergence. In the test phase, the event data sequence that needs to be segmented for the moving target is input, and the motion information in the event sequence is mined as the feature vector of the hypergraph node, which is used to construct the event spatiotemporal motion hypergraph. After iterative optimization of the deep hypergraph clustering network, the clustering result of the test sequence is finally output, that is, the segmentation result of the event spatiotemporal motion hypergraph.
Claims
1. A motion segmentation method based on deep hypergraph clustering, characterized in that: Here are the steps: (1) Constructing an event spatiotemporal motion hypergraph that integrates motion features Assuming that the given event sequence data Among them, (x k ,y k ) is the pixel coordinate of the event, t k is the timestamp of the event, p k = ± 1 is the polarity of the event, k represents the kth event point in the event sequence data; the construction of the hypergraph node combines the timestamp t of each event point k , polarity information p k , space-time information (x k ,y k ,t k ) and the motion information mined therefrom; define the motion model Mk(uk,vk,nxk,nyk,nzk) of a single event point based on the optical flow and motion speed attributes; Then, the feature embedding of all nodes in the event hypergraph is obtained It is expressed as follows: Among them, uk and vk represent the optical flow information of a single event point, i.e., a single node, in the horizontal and vertical directions respectively. The velocity attribute representing the velocity of a single event point on the composed local event surface; Given the feature embeddings of all nodes Construct an event spatiotemporal motion hypergraph G = {V, E, W}, where the node V represents a sample, the hyperedge E represents a sample set containing a variable number of samples, and W(v i ,v j ) represents the weight between any two points on the hyperedge; by randomly selecting events within the time interval as nodes And use the K nearest neighbor algorithm to select K nearest neighbors to form a hyperedge, traverse all nodes to form a hyperedge set of the hypergraph Generate a complete spatiotemporal motion hypergraph G = {V, E, W}; Adj(v) = {e1,e2,…,e M }(4) Con(e)={v1,v2,…,v N }(5) Where Con(e) represents the vertex set of hyperedge e, Adj(v) represents the hyperedge set consisting of all hyperedges containing vertex v, N and M are the number of vertices in hyperedge e and the number of hyperedges containing vertex v; (2) Motion Segmentation Based on Deep Hypergraph Clustering According to the standard of "small distance between classes and large distance within classes" of event clusters after motion segmentation, a deep hypergraph clustering method is designed. Through a self-training graph clustering, the cohesion between nodes in the same cluster is enhanced, clustering is completed, and the generalization of the algorithm is improved. Formally, the event spatiotemporal motion hypergraph G = {V, E, W} is obtained; the association between samples and hyperedges is constructed from the event spatiotemporal motion hypergraph G, which is defined as the association matrix That is, if v i ∈e i ,but otherwise The clustering algorithm uses the eigenvectors of the hypergraph Laplacian matrix; specifically, the second smallest eigenvalue of the hypergraph Laplacian matrix and its corresponding eigenvector are used to identify natural partitions in the data, thereby achieving clustering; The hypergraph Laplacian matrix of the event spacetime motion is defined as: Among them, D V and D E are the degree matrices of nodes and hyperedges, respectively; Among them, the hypergraph Laplacian matrix decomposition is obtained: Lh=UΛU-1(5) Among them, U = [u1,...,un] represents n basis vectors, Λ = diag(λ1,..λq,..,λn) is a diagonal matrix, the size of λq reflects the smoothness of the basis vectors, and the "smoothness" on the hypergraph reflects the similarity of adjacent nodes; motion segmentation based on deep hypergraph clustering is based on the event spatiotemporal motion hypergraph constructed above and the corresponding association matrix H, and the purpose of motion segmentation is achieved through the Laplace matrix decomposition of the hypergraph of event spatiotemporal motion.
