Optical flow-based object detection method inspired by compound eye vision

By simulating the neural network of the biological vision system, rapid motion detection in complex environments is realized, and the detection speed and background update problems of existing optical flow methods and background modeling methods in complex scenarios is solved, and the detection speed and background update problems of existing optical flow methods and background modeling methods in complex scenarios is improved. Detection accuracy and speed.

CN114648558BActive Publication Date: 2024-11-29INSTITUTE OF BIOPHYSICS CHINESE ACADEMY OF SCIENCES
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011499238.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-11-29
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

The existing optical flow method and background modeling method are difficult to meet the basic assumptions at the same time in complex and changing scenarios with fast target movement, resulting in the problem of slow detection speed and untimely update of background models.

Method used

Using compound-eye vision-inspired object detection method, the two-dimensional optical flow field is estimated by a primary motion detector array, and the nonlinear relationship of the biological vision system is simulated to realize the space and time of the optical flow matrix. Smoothing processing avoids the establishment and update of background models.

Benefits of technology

It realizes rapid motion detection under complex dynamic backgrounds, retains the position and shape information of the target in the field of view, improves detection speed and accuracy, and is suitable for motion detection in complex environments such as dynamic backgrounds of water flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114648558B_ABST
    Figure CN114648558B_ABST
Patent Text Reader

Abstract

The present disclosure provides a target detection method based on optical flow inspired by compound eye vision, including: determining the synaptic input conductance matrix of the first and second neural networks according to the optical flow matrix output by the EMD array; obtaining the output matrix of the first and second neural networks according to the membrane potential matrix of the first and second neural networks, and then determining the synaptic input conductance matrix of the third neural network; obtaining the neuron membrane potential matrix of the third neural network according to the synaptic input conductance matrix of the third neural network, establishing a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the third neural network, and obtaining the motion detection result of the target object. The present disclosure takes the working principle of the perfectly evolved compound eye vision system as a starting point, and realizes motion detection and target-background separation based on the biological perception optical flow mechanism by performing parallel point-by-point spatiotemporal smoothing and nonlinear binary classification transformation on the optical flow estimated by the primary motion detector array.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the intersection of brain science and computer vision, and in particular to an optical flow-based target detection method inspired by compound eye vision. Background Art

[0002] There are many methods for detecting moving target objects in the fields of computer vision and machine vision. When the information of the detected target is known in advance, the target object is often detected by building and training a neural network classifier. When the target is unknown, it is necessary to detect the target based on the motion salient features. Common methods include optical flow method and background modeling method.

[0003] The optical flow method detects motion based on the optical flow field characteristics of the physical world. It is an important application of the optical flow concept proposed by psychologist Gibson in the 1950s in computer vision. To apply the optical flow method, you first need to calculate the optical flow corresponding to the video frame, and then segment and extract independent moving targets based on the discontinuity between the optical flow of the moving object and the background, and between the optical flows of objects at different speeds. At present, various optical flow calculation theories and methods such as gradient-based, matching-based, energy-based, and phase-based have been quite complete.

[0004] However, the use of optical flow for target object detection requires three conditions: 1. Constant scene brightness; 2. Slow motion, that is, the inter-frame motion meets temporal continuity; 3. Neighboring points in the scene have similar motion, that is, they meet spatial consistency. However, it is difficult to meet the above basic assumptions at the same time for complex and changeable scenes with fast-moving targets. Moreover, the amount of calculation required to obtain dense optical flow for the entire scene is very large, which makes the online detection speed of the optical flow method slow.

[0005] Another widely used motion detection method is background modeling, which detects the target by solving the difference between the current frame and the background template. Actual scenes are often in dynamic changes. The key to background modeling is how to establish a noise-resistant background model that can be quickly updated with the scene. Around this core issue, various background modeling methods have emerged, including parametric, non-parametric, and data-driven. Since background modeling methods need to buffer several frames to learn and establish the background, the limitation of this type of method is that it faces the problem of not being able to update the background model in a timely manner in complex and changing scenes. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] The present disclosure provides a compound eye vision-inspired optical flow-based target detection method to solve the technical problems raised above.

[0008] (II) Technical solution

[0009] According to one aspect of the present disclosure, a compound eye vision-inspired optical flow-based target detection method is provided, comprising:

[0010] Using a primary motion detector array, the two-dimensional optical flow field is approximately estimated for the continuously input video frames, and an optical flow matrix for representing the two-dimensional optical flow field is output; wherein the positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame; wherein the video frame includes a target object and a background, and the background is stationary;

[0011] Determine the synaptic input conductance matrix of the first neural network and the second neural network according to the optical flow matrix, and obtain the neuron membrane potential matrix of the first neural network and the second neural network; establish a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network and the second neural network, and obtain the output matrix of the first neural network and the second neural network;

[0012] Determining a synaptic input conductance matrix for a third neural network based on the output matrices of the first neural network and the second neural network;

[0013] According to the synaptic input conductance matrix of the third neural network, a neuron membrane potential matrix of the third neural network is obtained, a nonlinear relationship between a single neuron membrane potential and a single neuron output in the third neural network is established, and an output matrix of the third neural network is obtained; wherein the output matrix of the third neural network represents the motion detection result of the target object in the video frame.

[0014] In some embodiments of the present disclosure, the video frame input interval of the primary motion detector array is divided into multiple time steps, and each of the time steps is used as an integration step of the first neural network neuron, the second neural network neuron and the third neural network neuron, so as to connect the time scales of the primary motion detector array and the first neural network neuron, the second neural network neuron and the third neural network neuron.

[0015] In some embodiments of the present disclosure, the scales of the first neural network, the second neural network and the third neural network match the scale of the primary motion detector array; wherein the scales of the primary motion detector array, the first neural network, the second neural network and the third neural network are all m×n.

[0016] In some embodiments of the present disclosure, determining the synaptic input conductance matrix of the first neural network and the second neural network according to the optical flow matrix includes:

[0017] Respectively calculating the convolution of the receptive field functions of the first neural network neurons and the second neural network neurons with the optical flow matrix output by the primary motion detector array to obtain the synaptic input conductance matrix of the first neural network and the second neural network;

[0018] The receptive fields of the first neural network neuron and the second neural network neuron in the primary motion detector array are p×p two-dimensional Gaussian functions with positive or negative signs, and the receptive fields of the first neural network neuron in the primary motion detector array and the receptive fields of the second neural network neuron in the primary motion detector array are p×p two-dimensional Gaussian functions with different signs, wherein p≥3;

[0019] Wherein, determining the synaptic input conductance matrix of the third neural network according to the output matrices of the first neural network and the second neural network comprises:

[0020] The output matrices of the first neural network and the second neural network are added in a spatially corresponding manner, and then convolved with the receptive field function of the neurons of the third neural network to obtain the synaptic input conductance matrix of the third neural network;

[0021] The receptive field of the neurons of the third neural network is a k×k two-dimensional Gaussian function with positive values, where 1≤k<p.

[0022] In some embodiments of the present disclosure, determining the neuron membrane potential matrices of the first neural network, the second neural network, and the third neural network includes:

[0023] According to the synaptic input conductance matrices of the first neural network, the second neural network and the third neural network, the synaptic input currents of the first neural network, the second neural network and the third neural network are calculated as I syn :

[0024] I syn (t) = g + (t)(E ext -V)+|g - (t)|(E inh -V);

[0025] Among them, g + (t) is the input conductance matrix generated by the excitatory synapse, g - (t) is the input conductance matrix generated by the inhibitory synapse, E ext is the reversal potential of the excitatory synaptic current, E inh is the reversal potential of the inhibitory synaptic current;

[0026] According to all neuron dynamics equations in the first neural network, the second neural network and the third neural network, the neuron membrane potential matrices of the first neural network, the second neural network and the third neural network are obtained respectively:

[0027]

[0028] Where V is the neuron membrane potential, τ m is the neuronal membrane time constant, E leak is the resting potential, I syn inputting current to the synapse;

[0029] Among them, the neurons of the first neural network, the second neural network and the third neural network use graded membrane potential to encode input information, simulating the non-firing characteristics of neurons in the compound eye visual system.

[0030] In some embodiments of the present disclosure, a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network, the second neural network, and the third neural network is established through a sigmoid function.

[0031] According to another aspect of the present disclosure, a compound eye vision-inspired optical flow-based target detection method is also provided, comprising:

[0032] Using a primary motion detector array, the two-dimensional optical flow field is approximately estimated for the continuously input video frames, and an optical flow matrix for representing the two-dimensional optical flow field is output; wherein the positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame; wherein the video frame includes a target object and a background, and the background moves in one direction;

[0033] According to the optical flow matrix, the synaptic input conductance matrix of the first neural network or the second neural network is determined to obtain the neuron membrane potential matrix of the first neural network or the second neural network; a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network or the second neural network is established to obtain the output matrix of the first neural network or the second neural network; wherein the output matrix of the first neural network or the second neural network represents the motion detection result of the target object in the video frame.

[0034] In some embodiments of the present disclosure, determining the synaptic input conductance matrix of the first neural network or the second neural network according to the optical flow matrix to obtain the neuron membrane potential matrix of the first neural network or the second neural network; establishing a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network or the second neural network to obtain the output matrix of the first neural network or the second neural network includes:

[0035] Performing a convolution operation on the receptive field function of the first neural network neuron or the second neural network neuron and the optical flow matrix output by the primary motion detector array to obtain a synaptic input conductance matrix for the first neural network or the second neural network;

[0036] Establishing a nonlinear relationship between a membrane potential of a single neuron and an output of a single neuron in the first neural network or the second neural network by using a sigmoid function;

[0037] Among them, the receptive fields of the first neural network neuron and the second neural network neuron in the primary motion detector array are p×p two-dimensional Gaussian functions with positive or negative signs, and the receptive field of the first neural network neuron in the primary motion detector array and the receptive field of the second neural network neuron in the primary motion detector array are p×p two-dimensional Gaussian functions with different signs, wherein p≥3.

[0038] In some embodiments of the present disclosure, the positive element value of the optical flow matrix represents that the local motion direction of the corresponding pixel position in the video frame is right, the receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign, and the receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign; if the background moves to the right, the output matrix of the second neural network represents the motion detection result of the target object in the video frame; if the background moves to the left, the output matrix of the first neural network represents the motion detection result of the target object in the video frame; or,

[0039] Among them, the positive element value of the optical flow matrix represents that the local motion direction of the corresponding pixel position in the video frame is left, the receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign, and the receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign; if the background moves to the right, the output matrix of the first neural network represents the motion detection result of the target object in the video frame; if the background moves to the left, the output matrix of the second neural network represents the motion detection result of the target object in the video frame.

[0040] In some embodiments of the present disclosure, determining the neuron membrane potential matrix of the first neural network or the second neural network includes:

[0041] According to the synaptic input conductance matrix of the first neural network or the second neural network, the synaptic input current of the first neural network or the second neural network is calculated as I syn :

[0042] I syn (t) = g + (t)(E ext -V)+|g - (t)|(E inh -V);

[0043] Among them, g + (t) is the input conductance matrix generated by the excitatory synapse, g - (t) is the input conductance matrix generated by the inhibitory synapse, E ext is the reversal potential of the excitatory synaptic current, E inh is the reversal potential of the inhibitory synaptic current;

[0044] According to all neuron dynamics equations in the first neural network or the second neural network, the neuron membrane potential matrix of the first neural network or the second neural network is obtained respectively:

[0045]

[0046] Where V is the neuron membrane potential, τ m is the neuronal membrane time constant, E leak is the resting potential, I syn is the synaptic input current.

[0047] (III) Beneficial effects

[0048] It can be seen from the above technical solutions that the target detection method based on optical flow inspired by compound eye vision disclosed in the present invention has at least one or part of the following beneficial effects:

[0049] (1) The present disclosure realizes spatial smoothing of the two-dimensional optical flow field approximately estimated by the primary motion detector array by smoothing and adding the optical flow in the receptive field of the first neural network neuron and the second neural network neuron according to the distance weight.

[0050] (2) The present disclosure constructs a neural network based on differential equation dynamics after the synapses of the primary motion detector array, so that the video frames enter the time continuous system in each neural network from the time discrete system, and further smoothes the optical flow matrix after spatial smoothing on the time axis.

[0051] (3) The present invention uses a nonlinear activation function to classify the state of each neuron in the neural network into a neuron group corresponding to the target and a neuron group corresponding to the background in real time, naturally realizing the motion segmentation of the optical flow matrix after spatiotemporal integration and smoothing.

[0052] (4) The present invention can realize motion detection under complex dynamic backgrounds (such as dynamic water flow background) by interpolating and halving the video frame image and then interpolating and doubling the output matrix after neural network processing, without the need to establish and update the background model.

[0053] (5) The present invention simulates the working principle of the biological visual system. Compared with the large field of view-small field of view detection model which is also based on the primary motion detector, it does not require the assumption of a pool of cells with different characteristics. In addition, the detection results retain the position, shape and other information of the detection target in the field of view, and can be directly applied to actual scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1A Schematic diagram of the structure of the Drosophila optic lobe.

[0055] Figure 1B Schematic diagram of the motion detection mechanism of the Drosophila optic lobe circuit.

[0056] Figure 2 A flowchart of an optical flow-based target detection method inspired by compound eye vision according to an embodiment of the present disclosure.

[0057] Figure 3A Schematic diagram of the receptive field of the first neural network in the primary motion detector array according to an embodiment of the present disclosure.

[0058] Figure 3B Schematic diagram of the receptive field of the second neural network in the primary motion detector array according to the embodiment of the present disclosure.

[0059] Figure 4 Schematic diagram of an optical flow-based target detection method inspired by compound eye vision according to an embodiment of the present disclosure.

[0060] Figure 5 This is a flowchart of operation S120 in the compound eye vision-inspired optical flow-based target detection method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0061] Whether it is optical flow method, background modeling method or other artificial detection technology, they are far inferior to the superb motion vision displayed by the compound eye visual system of insects with only a tiny brain when flying rapidly in a complex environment. Figure 1A and Figure 1B Take the structure of the fruit fly optic lobe as an example to explain the compound eye visual system. More than half a century ago, two German scientists, Reichardt and Hassenstein, proposed a model that the compound eye visual system detects local motion by calculating the spatiotemporal correlation of brightness in the field of view through their research on the behavioral responses of beetles under visual stimuli. A large number of experimental studies have since proved that the theoretical model of the correlation-type elementary motion detector (EMD), such as Figure 1B The dotted box is not only valid for the compound eye system of insects, but also generally applicable to the motion vision of vertebrates. One of the most important advances in neurobiology since 2010 is the analysis of the neural circuit corresponding to the EMD model, that is, the circuit from the retina through the lamina, medulla to T4 and T5 cells, such as Figure 1B shown.

[0062] like Figure 1A As shown in the figure, the compound eye is composed of hundreds of ommatidia. The photoreceptors in the retina send information to the optic lobe composed of the lamina, medulla, lobule and lobule plate through axons. The figure uses three horizontal system neurons as an example to illustrate the existence of dozens of large tangential cells in the lobule plate. Figure 1B As shown in Figure 1, the local motion detection mechanism from the retina to the T4 and T5 cell neural circuits can be refined into a primary motion detector EMD model at the algorithm level. Figure 1B As shown in the upper bracket, a classic EMD detection unit is given, which consists of a pair of symmetrical sub-detectors, each of which performs time delay and cross-multiplication operations on the brightness input received by the adjacent photoreceptors, and the operation results of the two sub-detectors are subtracted to obtain the final output. Figure 1B The “question mark” box shown in the lower brackets indicates that it is still unknown how the lobule complex in the deep layer of the optic lobe completes figure-background separation based on local motion information.

[0063] The significance of the EMD model lies in that it reveals how the naturally evolved biological visual system perceives optical flow and is the embodiment of the neural mechanism of optical flow perception at the algorithmic level.

[0064] On the other hand, the notable feature of EMD is that the EMD output is not only related to the motion speed but also to the texture contrast, etc. In other words, EMD does not give a geometric optical flow, but an estimated optical flow with noise. It is still unknown how the neural circuits in the deep layers of the optic lobe detect moving targets based on the approximate optical flow. Figure 1BThe question mark box part corresponding to the lower bracket. This is why the EMD proposed more than half a century ago has inspired many studies on moving target detection algorithms, but is rarely used in moving target detection.

[0065] For example, among the target detection algorithms inspired by the EMD model, the one with the most complete theoretical framework is the large field of view-small field of view algorithm model proposed in the 1980s. This algorithm model believes that there are two parallel pathways in the lobule plate deep in the optic lobe downstream of the EMD loop. One is the large field of view pathway that is sensitive to large-field optical flow, and the other is the small field of view pathway that is sensitive to relative motion in the field of view or small-field motion. The large field of view pathway is involved in the perception of low-frequency background motion; while the small field of view pathway is mainly responsible for the detection of high-frequency small target motion.

[0066] The core mechanism of the large field-small field two-pathway model is the pool cell hypothesis, that is, the model assumes that there are pool cell groups with different characteristics in the lobule plate that play a shunting inhibitory role. Although the large field and small field pathways receive the same EMD array input, the EMD input of the small field pathway is specifically inhibited by the pool cells, which in turn produces a sensitive response to the movement of small targets. In addition to the pool cell hypothesis, another feature of the large field-small field two-pathway model is that the receptive field of neurons covers the entire field of view. Therefore, the algorithm is based on the integration of the entire optical flow field and does not retain the spatial structure of the optical flow. Its working principle determines that the large field-small field algorithm model can only detect the direction of movement of small targets, but cannot detect information such as the position and shape of the target in the field of view.

[0067] Based on the above, the present disclosure proposes that the lobule should be a high-level motion vision area downstream of the EMD loop, and is a key brain area for processing approximate optical flow and realizing functions such as target-background separation. EMD and lobule loops constitute an EMD-lobule joint detection network. Lobular neurons have similar receptive field structures and process approximate optical flow from the upstream EMD loop in parallel. Therefore, the present disclosure provides a target detection method based on optical flow inspired by compound eye vision, including: determining the synaptic input conductance matrix of the first and second neural networks according to the optical flow matrix output by the EMD array; obtaining the output matrix of the first and second neural networks according to the membrane potential matrix of the first and second neural networks, and then determining the synaptic input conductance matrix of the third neural network; obtaining the neuron membrane potential matrix of the third neural network according to the synaptic input conductance matrix of the third neural network, establishing a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the third neural network, and obtaining the motion detection result of the target object. The present invention discloses a target segmentation neural network that uses the estimated optical flow of the EMD array as input, and cleverly processes the noisy local optical flow field output by the EMD array in a brain-like manner, thereby realizing motion detection and target-background separation based on the biological perception optical flow mechanism.

[0068] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0069] Certain embodiments of the present disclosure will be described more fully below with reference to the accompanying drawings, some but not all of which are shown. In fact, the various embodiments of the present disclosure may be implemented in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present disclosure satisfies applicable legal requirements.

[0070] In a first exemplary embodiment of the present disclosure, a compound eye vision-inspired optical flow-based target detection method is provided. Figure 2 Flow chart of the target detection method based on optical flow inspired by compound eye vision in the embodiment of the present disclosure. Figure 2 As shown, the target detection method based on optical flow inspired by compound eye vision disclosed in the present invention includes:

[0071] Operation S110, using a primary motion detector array, approximately estimates the two-dimensional optical flow field for the continuously input video frames, and outputs an optical flow matrix for representing the two-dimensional optical flow field; wherein the positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame; wherein the video frame includes the target object and the background, and the background is stationary.

[0072] In the input preprocessing before operation S110, the present disclosure is applicable to grayscale image videos of visible light or infrared imaging. If it is an RGB color image, the second channel can be taken as input. In order to improve the detection speed and remove noise, the video frame image is first interpolated and halved, and the scale is recorded as m×n. After the detection is completed, the output matrix is ​​restored to the original size of the input video image by interpolation doubling. Secondly, the pixel value is normalized so that the brightness is within the range of [0, 1] to facilitate motion detection.

[0073] In operation S110, the EMD array size corresponds to the input, and is composed of m×n Figure 1B The classic primary motion detector unit shown in the dotted box is composed of a time delay implemented by a first-order low-pass filter, and the filter time constant is taken as 10 to 40ms.

[0074] The EMD array may also be constructed using other forms of motion detectors so as to achieve an output matrix that approximates the estimation of the two-dimensional optical flow field for the continuously input video frames, without further limitation.

[0075] For example, Figure 4As shown, a parallel motion detector model that distinguishes between ON and OFF paths can be used as a solution to replace the classic EMD array. The parallel motion detector model that distinguishes between ON and OFF paths separates the ON and OFF paths by half-wave rectification of the brightness input, and the rectification thresholds are set to 0 and 0.05, respectively. The first-order low-pass filter time constant is 50ms. With this alternative solution, the approximate optical flow matrices detected by the ON and OFF paths need to be summed in a spatially corresponding manner as the final output of the EMD array, and then respectively cast to the first neural network and the second neural network.

[0076] In order to connect the time scales of the primary motion detector array and the neurons of the three neural networks (i.e., the first neural network, the second neural network and the third neural network), the video frame input interval of the primary motion detector array is divided into multiple time steps, and each time step is used as the integration step of the neurons of the three neural networks to achieve pixel-by-pixel temporal smoothing of the approximate optical flow.

[0077] For example, when the video frame rate is 100 Hz, the EMD array receives one frame of image input every 10 ms, and the integration step of the first neural network neurons, the second neural network neurons and the third neural network neurons is 2 ms, that is, the EMD array is updated by one step, and the corresponding differential equations of the first neural network, the second neural network and the third neural network are integrated for 5 time steps.

[0078] The positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame.

[0079] For example, the positive element value of the optical flow matrix can be set to represent that the local motion direction of the corresponding pixel position in the video frame is to the right; the negative element value of the optical flow matrix represents that the local motion direction of the corresponding pixel position in the video frame is to the left, and the zero element value of the optical flow matrix represents that there is no local motion at the corresponding pixel position in the video frame.

[0080] For another example, the positive element value of the optical flow matrix can be set to indicate that the local motion direction of the corresponding pixel position in the video frame is to the left; the negative element value of the optical flow matrix indicates that the local motion direction of the corresponding pixel position in the video frame is to the right; and the zero element value of the optical flow matrix indicates that there is no local motion at the corresponding pixel position in the video frame.

[0081] Operation S120, determining the synaptic input conductance matrix of the first neural network and the second neural network according to the optical flow matrix, and obtaining the neuron membrane potential matrix of the first neural network and the second neural network; establishing the nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network and the second neural network, and obtaining the output matrix of the first neural network and the second neural network. Figure 5 As shown, it specifically includes the following sub-operations:

[0082] Sub-operation S121: respectively calculating the convolution of the receptive field function of the first neural network neuron and the second neural network neuron with the optical flow matrix output by the primary motion detector array, and obtaining the synaptic input conductance matrix of the first neural network and the second neural network. The first neural network neuron and the second neural network neuron smooth the optical flow in their receptive fields according to the distance weight, and realize pixel-by-pixel spatial smoothing of the approximate optical flow.

[0083] For example, Figure 3A As shown, the receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign, and the receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign, such as Figure 3B , where p≥3.

[0084] For another example, the receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign, and the receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign, where p≥3.

[0085] Sub-operation S122: obtaining neuron membrane potential matrices of the first neural network and the second neural network according to the synaptic input conductance matrices of the first neural network and the second neural network.

[0086] According to the output matrices of the first neural network and the second neural network, the prominent input currents of the first neural network and the second neural network are calculated as I syn :

[0087] I syn (t) = g + (t)(E ext -V)+|g - (t)|(E inh -V);

[0088] Among them, g + (t) is the input conductance matrix generated by the excitatory synapse, g - (t) is the input conductance matrix generated by the inhibitory synapse, E ext is the reversal potential of the excitatory synaptic current, E inh is the reversal potential of the inhibitory synaptic current.

[0089] According to the dynamic equations of all neurons in the first neural network and the second neural network, the membrane potential matrices of neurons in the first neural network and the second neural network are obtained respectively:

[0090]

[0091] Where V is the neuron membrane potential, τ m is the neuronal membrane time constant, E leak is the resting potential, I syn is the synaptic input current.

[0092] For example, in one embodiment, the reversal potential of the excitatory synaptic current of the target segmented neural network is set to 0 mV, the reversal potential of the inhibitory synaptic current is set to -80 mV, and the resting potential is E Leak =-50mV.

[0093] Sub-operation S123: establishing a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network and the second neural network through a sigmoid function, and obtaining output matrices of the first neural network and the second neural network.

[0094] For example, according to the signs of the receptive field functions of the first neural network and the second neural network, it is determined that the neurons of the first neural network show depolarized electrical activity for a moving target with a rightward velocity component, and show hyperpolarized electrical activity for a target with a leftward velocity component. The neurons of the second neural network are exactly the opposite of the neurons of the first neural network. The neurons of the second neural network show hyperpolarized electrical activity for a moving target with a rightward velocity component, and show depolarized electrical activity for a target with a leftward velocity component. Among them, the hyperpolarized neurons have no output, and only the sufficiently depolarized neurons have synaptic output.

[0095] For another example, based on the signs of the receptive field functions of the first neural network and the second neural network, it is determined that the neurons of the first neural network exhibit depolarized electrical activity for a moving target with a left velocity component, and exhibit hyperpolarized electrical activity for a target with a right velocity component. The neurons of the second neural network are exactly the opposite of the neurons of the first neural network. The neurons of the second neural network exhibit hyperpolarized electrical activity for a moving target with a left velocity component, and exhibit depolarized electrical activity for a target with a right velocity component. Among them, the hyperpolarized neurons have no output, and only the neurons with sufficiently strong depolarization have synaptic output.

[0096] In operation S130, a synaptic input conductance matrix for a third neural network is determined according to the membrane potential matrices of the first neural network and the second neural network.

[0097] Specifically, the output matrices of the first neural network and the second neural network are added in a spatially corresponding manner, and then convolved with the receptive field function of the neurons of the third neural network to obtain the synaptic input conductance matrix of the third neural network.

[0098] The receptive field of the neuron of the third neural network is a k×k two-dimensional Gaussian function with positive values, where 1≤k<p.

[0099] In a specific embodiment, p is set to 13, and the synaptic conductance is set to a dimensionless value of 150. The calculation results of the first neural network and the second neural network are summed in a spatially corresponding manner and then projected to the lobule output layer, i.e., the third neural network, and the projected synaptic conductance is set to a dimensionless value of 1. The receptive field of the third neural network neuron on its input layer is set to a 3×3 positive Gaussian function.

[0100] Operation S140, based on the synaptic input conductance matrix of the third neural network, obtain the neuron membrane potential matrix of the third neural network, establish a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the third neural network, and obtain the output matrix of the third neural network; wherein the output matrix of the third neural network represents the motion detection result of the target object in the video frame. Operation S140 can be specifically performed with reference to operations S122 to S123, and will not be described in detail here.

[0101] In general, the target and background motion in video scenes contain non-zero horizontal velocity components. To improve the detection speed, the EMD array only includes horizontal motion detectors. For scenes with no horizontal velocity components and only vertical motion, the target detection can be performed by detecting vertical motion by changing the part of the EMD array that calculates the temporal and spatial correlation of brightness by row to calculating by column.

[0102] In a second exemplary embodiment of the present disclosure, a target detection method based on optical flow inspired by compound eye vision is provided. Compared with the target detection method based on optical flow inspired by compound eye vision of the first embodiment, the difference between the target detection method based on optical flow inspired by compound eye vision of this embodiment is that: the background has movement in one direction; according to the optical flow matrix, the synaptic input conductance matrix of the first neural network or the second neural network is determined, and the nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network or the second neural network is established to obtain the output matrix of the first neural network or the second neural network; wherein the output matrix of the first neural network or the second neural network represents the motion detection result of the target object in the video frame. Specifically comprising the following steps:

[0103] According to the background motion direction in the video frame, a convolution operation is performed on the receptive field function of the first neural network neuron or the second neural network neuron and the optical flow matrix output by the primary motion detector array to obtain the synaptic input conductance matrix of the first neural network or the second neural network, and according to the neuron dynamics equation, the neuron membrane potential matrix of the first neural network or the second neural network is obtained.

[0104] A nonlinear relationship between a single neuron membrane potential and a single neuron output in the first neural network or the second neural network is established through a sigmoid function.

[0105] Among them, the receptive fields of the first neural network neurons and the second neural network neurons in the primary motion detector array are p×p two-dimensional Gaussian functions with positive or negative signs, and the receptive field of the first neural network neuron in the primary motion detector array and the receptive field of the second neural network neuron in the primary motion detector array are p×p two-dimensional Gaussian functions with different signs, wherein p≥3.

[0106] For example, the positive element value of the optical flow matrix is ​​set to represent the local motion direction of the corresponding pixel position in the video frame as rightward. The receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign. The receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign.

[0107] For a scene in which the background in a video frame moves to the left, the output matrix of the first neural network represents the motion detection result of the target object in the video frame.

[0108] For a scene in which the background in a video frame moves to the right, the output matrix of the second neural network represents the motion detection result of the target object in the video frame.

[0109] For another example, the positive element value of the optical flow matrix is ​​set to represent the local motion direction of the corresponding pixel position in the video frame as left. The receptive field of the first neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a positive sign, and the receptive field of the second neural network neuron in the primary motion detector array is a p×p two-dimensional Gaussian function with a negative sign.

[0110] For a scene in which the background in a video frame moves to the right, the output matrix of the first neural network represents the motion detection result of the target object in the video frame.

[0111] For a scene in which the background in a video frame moves to the left, the output matrix of the second neural network represents the motion detection result of the target object in the video frame.

[0112] So far, the embodiments of the present disclosure have been described in detail in conjunction with the accompanying drawings. It should be noted that the implementation methods not shown or described in the drawings or the body of the specification are all forms known to ordinary technicians in the relevant technical field and are not described in detail. In addition, the above definitions of each element and method are not limited to the various specific structures, shapes or methods mentioned in the embodiments, and ordinary technicians in the field can simply change or replace them.

[0113] Based on the above description, those skilled in the art should have a clear understanding of the optical flow-based target detection method inspired by compound eye vision of the present invention.

[0114] In summary, the present disclosure provides a target detection method based on optical flow inspired by compound eye vision that cleverly processes the noisy local optical flow field output by the EMD array in a brain-like manner, and realizes motion detection and target-background separation based on the biological perception optical flow mechanism. The present disclosure simulates the working principle of the biological visual system and attempts to solve the motion detection problem with a new concept that is different from the traditional ideas in computer vision, machine vision, and engineering. It has great potential to be widely used in many fields such as traffic management, drone reconnaissance, and special place monitoring.

[0115] It should also be noted that the directional terms mentioned in the embodiments, such as "upper", "lower", "front", "back", "left", "right", etc., are only reference directions of the drawings and are not intended to limit the scope of protection of the present disclosure. Throughout the drawings, the same elements are represented by the same or similar reference numerals. Conventional structures or configurations will be omitted when they may cause confusion in the understanding of the present disclosure.

[0116] Unless otherwise indicated, the numerical parameters in this specification and the appended claims are approximate values ​​and can vary according to the desired properties obtained through the content of the present disclosure. Specifically, all numbers used in the specification and claims to express the content of the composition, reaction conditions, etc., should be understood to be modified by the term "about" in all cases. In general, the meaning of the expression is to include a variation of ±10% in some embodiments, ±5% in some embodiments, ±1% in some embodiments, and ±0.5% in some embodiments by a specific number.

[0117] The ordinal numbers used in the specification and claims, such as "first", "second", "third", etc., to modify the corresponding elements, do not themselves mean that the elements have any ordinal numbers, nor do they represent the order of one element and another element, or the order in the manufacturing method. The use of these ordinal numbers is only used to clearly distinguish a component with a certain name from another component with the same name.

[0118] In addition, unless the steps are specifically described or must occur in sequence, the order of the above steps is not limited to the above list, and can be changed or rearranged according to the required design. And the above embodiments can be mixed and matched with each other or with other embodiments based on design and reliability considerations, that is, the technical features in different embodiments can be freely combined to form more embodiments.

[0119] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems may also be used together with the enlightenment based thereon. According to the above description, it is apparent that the structure required for constructing such systems is. In addition, the present disclosure is not directed to any particular programming language either. It should be understood that various programming languages ​​may be utilized to implement the disclosure described herein, and the description of the specific languages ​​above is for the purpose of disclosing the best mode of implementation of the present disclosure.

[0120] The present disclosure can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. The various component embodiments of the present disclosure can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the related equipment according to the embodiments of the present disclosure. The present disclosure can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present disclosure can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0121] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose. Furthermore, in a unit claim that lists several devices, several of these devices may be embodied by the same hardware item.

[0122] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present disclosure. It should be understood that the above description is only a specific embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A compound eye vision-inspired target detection method based on optical flow, comprising: Using a primary motion detector array, the two-dimensional optical flow field is approximately estimated for the continuously input video frames, and an optical flow matrix for representing the two-dimensional optical flow field is output; wherein the positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame; wherein the video frame includes a target object and a background, and the background is stationary; Determine the synaptic input conductance matrix of the first neural network and the second neural network according to the optical flow matrix, and obtain the neuron membrane potential matrix of the first neural network and the second neural network; establish a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network and the second neural network, and obtain the output matrix of the first neural network and the second neural network; Determining a synaptic input conductance matrix for a third neural network based on the output matrices of the first neural network and the second neural network; According to the synaptic input conductance matrix of the third neural network, a neuron membrane potential matrix of the third neural network is obtained, a nonlinear relationship between a single neuron membrane potential and a single neuron output in the third neural network is established, and an output matrix of the third neural network is obtained; wherein the output matrix of the third neural network represents a motion detection result of the target object in the video frame; Wherein, the video frame input interval of the primary motion detector array is divided into multiple time steps, and each of the time steps is used as the integration step of the first neural network neuron, the second neural network neuron and the third neural network neuron, so as to connect the time scales of the primary motion detector array and the first neural network neuron, the second neural network neuron and the third neural network neuron.

2. The target detection method according to claim 1, wherein: The scales of the first neural network, the second neural network and the third neural network match the scale of the primary motion detector array; wherein the scales of the primary motion detector array, the first neural network, the second neural network and the third neural network are all 3. The target detection method according to claim 1, wherein: Determining the synaptic input conductance matrix of the first neural network and the second neural network according to the optical flow matrix includes: Respectively calculating the convolution of the receptive field functions of the first neural network neurons and the second neural network neurons with the optical flow matrix output by the primary motion detector array to obtain the synaptic input conductance matrix of the first neural network and the second neural network; The receptive fields of the first neural network neurons and the second neural network neurons in the primary motion detector array are positive or negative. A two-dimensional Gaussian function, and the receptive field of the first neural network neuron in the primary motion detector array and the receptive field of the second neural network neuron in the primary motion detector array are of different signs Two-dimensional Gaussian function, where p ≥ 3; Wherein, determining the synaptic input conductance matrix of the third neural network according to the output matrices of the first neural network and the second neural network comprises: The output matrices of the first neural network and the second neural network are added in a spatially corresponding manner, and then convolved with the receptive field function of the neurons of the third neural network to obtain the synaptic input conductance matrix of the third neural network; The receptive field of the third neural network neuron is a positive value. Two-dimensional Gaussian function, where 1≤k<p.

4. The target detection method according to claim 1, wherein: The determination of the neuron membrane potential matrices of the first neural network, the second neural network and the third neural network includes: According to the synaptic input conductance matrices of the first neural network, the second neural network and the third neural network, the synaptic input currents of the first neural network, the second neural network and the third neural network are calculated as follows: : ; in, is the input conductance matrix generated by the excitatory synapse, is the input conductance matrix generated by inhibitory synapses, is the reversal potential of the excitatory synaptic current, is the reversal potential of the inhibitory synaptic current; According to all neuron dynamics equations in the first neural network, the second neural network and the third neural network, the neuron membrane potential matrices of the first neural network, the second neural network and the third neural network are obtained respectively: Where V is the neuron membrane potential, is the neuronal membrane time constant, is the resting potential, inputting current to the synapse; Among them, the neurons of the first neural network, the second neural network and the third neural network use graded membrane potential to encode input information, simulating the non-firing characteristics of neurons in the compound eye visual system.

5. The target detection method according to claim 1, wherein: A nonlinear relationship between a single neuron membrane potential and a single neuron output in the first neural network, the second neural network and the third neural network is established through a sigmoid function.

6. A compound eye vision-inspired target detection method based on optical flow, comprising: Using a primary motion detector array, the two-dimensional optical flow field is approximately estimated for the continuously input video frames, and an optical flow matrix for representing the two-dimensional optical flow field is output; wherein the positive or negative elements of the optical flow matrix represent the local motion direction of the corresponding pixel position in the video frame; wherein the video frame includes a target object and a background, and the background moves in one direction; According to the optical flow matrix, determine the synaptic input conductance matrix of the first neural network or the second neural network to obtain the neuron membrane potential matrix of the first neural network or the second neural network; establish a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network or the second neural network to obtain the output matrix of the first neural network or the second neural network; wherein the output matrix of the first neural network or the second neural network represents the motion detection result of the target object in the video frame; Wherein, the video frame input interval of the primary motion detector array is divided into multiple time steps, and each of the time steps is used as the integration step of the first neural network neuron or the second neural network neuron, so as to connect the time scale of the primary motion detector array and the first neural network neuron or the second neural network neuron.

7. The target detection method according to claim 6, wherein: Determining the synaptic input conductance matrix of the first neural network or the second neural network according to the optical flow matrix to obtain the neuron membrane potential matrix of the first neural network or the second neural network; establishing a nonlinear relationship between the membrane potential of a single neuron and the output of a single neuron in the first neural network or the second neural network to obtain the output matrix of the first neural network or the second neural network includes: Performing a convolution operation on the receptive field function of the first neural network neuron or the second neural network neuron and the optical flow matrix output by the primary motion detector array to obtain a synaptic input conductance matrix for the first neural network or the second neural network; Establishing a nonlinear relationship between a membrane potential of a single neuron and an output of a single neuron in the first neural network or the second neural network by using a sigmoid function; The receptive fields of the first neural network neurons and the second neural network neurons in the primary motion detector array are positive or negative. A two-dimensional Gaussian function, and the receptive field of the first neural network neuron in the primary motion detector array and the receptive field of the second neural network neuron in the primary motion detector array are of different signs Two-dimensional Gaussian function, where p ≥ 3.

8. The target detection method according to claim 6, wherein: The positive element value of the optical flow matrix indicates that the local motion direction of the corresponding pixel position in the video frame is right, and the receptive field of the first neural network neuron in the primary motion detector array is positive. Two-dimensional Gaussian function, the receptive field of the second neural network neuron in the primary motion detector array is negative two-dimensional Gaussian function; if the background moves to the right, the output matrix of the second neural network represents the motion detection result of the target object in the video frame; if the background moves to the left, the output matrix of the first neural network represents the motion detection result of the target object in the video frame; or, The positive element value of the optical flow matrix indicates that the local motion direction of the corresponding pixel position in the video frame is left, and the receptive field of the first neural network neuron in the primary motion detector array is positive. Two-dimensional Gaussian function, the receptive field of the second neural network neuron in the primary motion detector array is negative two-dimensional Gaussian function; if the background moves to the right, the output matrix of the first neural network represents the motion detection result of the target object in the video frame; if the background moves to the left, the output matrix of the second neural network represents the motion detection result of the target object in the video frame.

9. The target detection method according to claim 6, wherein: Determining the neuron membrane potential matrix of the first neural network or the second neural network includes: According to the synaptic input conductance matrix of the first neural network or the second neural network, the synaptic input current of the first neural network or the second neural network is calculated as : ; in, is the input conductance matrix generated by the excitatory synapse, is the input conductance matrix generated by inhibitory synapses, is the reversal potential of the excitatory synaptic current, is the reversal potential of the inhibitory synaptic current; According to all neuron dynamics equations in the first neural network or the second neural network, the neuron membrane potential matrix of the first neural network or the second neural network is obtained respectively: Where V is the neuron membrane potential, is the neuronal membrane time constant, is the resting potential, is the synaptic input current.

Citation Information

Patent Citations

  • Three-dimensional moving target detection method inspired by fruit fly vision based on laser radar

    CN110824495A

  • Biomimetic Integrated Optical Sensor (BIOS) System

    US20170041534A1