The present disclosure relates generally to machine learning algorithms, and more specifically to object recognition and detection.
Systems have attempted to use various neural networks and computer learning algorithms to identify objects within an image or a series of images. However, existing attempts to identify objects are not successful because the methods of pattern recognition and estimating location of objects are inaccurate and non-general. Furthermore, existing systems attempt to identify objects by some sort of pattern recognition that is too specific, or not sufficiently adaptable, as the object changes between images. Thus, there is a need for an enhanced method for training a neural network to detect and identify objects of interest with increased accuracy by utilizing improved computational operations.
The following presents a simplified summary of the disclosure in order to provide a basic understanding of certain embodiments of the present disclosure. This summary is not an extensive overview of the disclosure and it does not identify key/critical elements of the present disclosure or delineate the scope of the present disclosure. Its sole purpose is to present some concepts disclosed herein in a simplified form as a prelude to the more detailed description that is presented later.
In general, certain embodiments of the present disclosure provide techniques or mechanisms for improved object detection by a neural network. According to various embodiments, a method for object detection using a neural network is provided. The method comprises a training mode and an inference mode. In yet another embodiment, a system for neural network object detection is provided. The system includes one or more processors, memory, and one or more programs stored in the memory. The one or more programs comprises instructions to operate in a training mode and an inference mode. In yet another embodiment, a computer readable storage medium is provided, which stores one or more programs configured for execution by a computer. The one or more programs comprises instructions to operate in a training mode and an inference mode.
In the training mode, a dataset is passed into the neural network, and the neural network is trained to accurately output a box size and a center location of an object of interest. The box size corresponds to the smallest possible bounding box around the object of interest and the center location corresponds to the location of the center of the bounding box. In the inference mode, an image that is not part of the dataset is passed into the neural network. The neural network automatically identifies an object of interest and automatically draws a box around the identified object of interest. The box drawn around the identified object of interest corresponds to the smallest possible bounding box around the object of interest. The neural network comprises a convolution-nonlinearity step and a recurrent step. In certain embodiments, the dataset may comprise a plurality of images with known identified objects of interests. According to various embodiments, parameters in the neural network may be updated using a stochastic gradient descent during the training mode. In the inference mode of certain embodiments, the neural network will automatically output exactly the same number of boxes as the number of identifiable objects of interest.
According to various embodiments, the convolution non-linearity step may comprise a convolution layer and a rectified linear layer. In other embodiments, each layer in the convolution-nonlinearity step may take a third-order tensor as input and output a modified third-order tensor. In further embodiments, the convolution-nonlinearity step may comprise a plurality of convolution-nonlinearity layer pairs that each comprise a convolution layer followed by a rectified linear layer. In other embodiments, the convolution-nonlinearity step may consist of five convolution-nonlinearity layer pairs that each comprises a convolution layer followed by a rectified linear layer.
According to various embodiments, the recurrent step may comprise a quadratic recurrent layer. In other embodiments, the recurrent step may comprise a plurality of recurrent layer pairs that each comprises a quadratic recurrent layer followed by a linear layer. In some embodiments, the quadratic recurrent layer may take as input two first-order tensors and output a single first-order tensor. In various embodiments, the output of a first quadratic recurrent layer may be used as input into a second quadratic layer. In certain embodiments, the linear layer may output a first-order tensor with at least one dimension. In some embodiments, the at least one dimension may include the x and y coordinates of the center of the bounding box, the height of the bounding box, the width of the bounding box, and a probability that the bounding box is accurate. In some embodiments, the output of a quadratic recurrent layer may be used as input into a subsequent quadratic recurrent layer unless a linear layer in the recurrent step outputs a probability of less than 0.5 that the bounding box is accurate.
The disclosure may best be understood by reference to the following description taken in conjunction with the accompanying drawings, which illustrate particular embodiments of the present disclosure.
Reference will now be made in detail to some specific examples of the present disclosure including the best modes contemplated by the inventors for carrying out the present disclosure. Examples of these specific embodiments are illustrated in the accompanying drawings. While the present disclosure is described in conjunction with these specific embodiments, it will be understood that it is not intended to limit the present disclosure to the described embodiments. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the present disclosure as defined by the appended claims.
For example, the techniques of the present disclosure will be described in the context of particular algorithms However, it should be noted that the techniques of the present disclosure apply to various other algorithms. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. Particular example embodiments of the present disclosure may be implemented without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present disclosure.
Various techniques and mechanisms of the present disclosure will sometimes be described in singular form for clarity. However, it should be noted that some embodiments include multiple iterations of a technique or multiple instantiations of a mechanism unless noted otherwise. For example, a system uses a processor in a variety of contexts. However, it will be appreciated that a system can use multiple processors while remaining within the scope of the present disclosure unless otherwise noted. Furthermore, the techniques and mechanisms of the present disclosure will sometimes describe a connection between two entities. It should be noted that a connection between two entities does not necessarily mean a direct, unimpeded connection, as a variety of other entities may reside between the two entities. For example, a processor may be connected to memory, but it will be appreciated that a variety of bridges and controllers may reside between the processor and memory. Consequently, a connection does not necessarily mean a direct, unimpeded connection unless otherwise noted.
According to various embodiments, a method for object detection using a neural network is provided. The method comprises a training mode and an inference mode. In the training mode, a dataset is passed into the neural network, and the neural network is trained to accurately output a box size and a center location of an object of interest. The box size corresponds to the smallest possible bounding box around the object of interest and the center location corresponds to the location of the center of the bounding box. In the inference mode, an image that is not part of the dataset is passed into the neural network. The neural network automatically identifies an object of interest and automatically draws a box around the identified object of interest. The box drawn around the identified object of interest corresponds to the smallest possible bounding box around the object of interest. The neural network comprises a convolution-nonlinearity step and a recurrent step.
According to various embodiments, a system for general object detection may use a labeled dataset to train the parameters of a neural network so that the neural network can accurately output the box size and the center location for one or more objects of interests located in new images that the neural network was not trained on. Examples of objects of interests may include, but are not limited to, individual faces, heads, or other body parts, cars, animals, trees, etc. In some embodiments, a labeled dataset may include a collection of images where, for each image, the following information is provided as pixel coordinates: the center location, height, and width of the smallest possible bounding box around each object of interest within the image. In other embodiments, other information may be provided for each object of interest. In other embodiments, the information may be provided in other various formats.
According to various embodiments, the neural network may operate in two modes. The first mode may be a “training” mode in which the initial parameters, which start from random values, are slowly updated by comparing predicted boxes output by the neural network with the information of the labeled dataset. In some embodiments, the initial parameters updated, or trained, by stochastic gradient descent, which slowly updates the initial random values of parameters such that the neural network outputs increasingly accurate center location, height, and width for the minimum bounding box around each object of interest within an image. The second mode may be an “inference” mode in which the neural network applies the updated parameters to predict objects of interest and output the center location, height, and width for the minimum bounding box around each of the predicted objects of interest. In some embodiments, the neural network may identify objects of interest within a series of images with a desired accuracy rate in real-time. In some embodiments, real-time may comprise a rate of approximately 25 frames-per-second.
According to various embodiments, the neural network may include a convolution-nonlinearity step and a recurrent step that are implemented in both the training mode and the inference mode. In some embodiments, the convolution-nonlinearity step transforms the pixels of images into feature tensors that the neural network may use for object detection. In some embodiments, the recurrent step translates the feature tensors from the convolution-nonlinearity step into the boxes identifying the objects of interest. Each step comprises a number of different computational layers. A “layer” refers to a mathematical function which has one or more input tensors and one or more output tensors. In some embodiments, a layer may include one or more tensors of parameters which are updated, or trained, using a stochastic descent algorithm. Such computational layers may include convolutional layers, rectified-linear layers, and linear layers. In other embodiments, other various layers may be implemented in the neural network. In an embodiment, the neural network additionally uses a quadratic recurrent layer. In various embodiments, the neural network combines sequential layers in a novel combination for the task of object detection. In some embodiments, the neural network may be trained to recognize a more general pattern for an object type to identify an object from any angle in any sense. In an embodiment, the network may be built from a sequence of layers, with the output from one layer feeding in as the input to the next layer, as further described in
In various embodiments, convolution-nonlinearity step 150 of neural network 100, depicted in
x(l+1)ijn=ΣmΣaΣbW(l)nmabx(l)(i−a)(j−b)m+b(l)n
Using this equation, convolution layer 104-A processes the third order tensor input x(1)ijm of image pixels 102 and produces a third order tensor output 104-OA denoted as x(2)ijn. In some embodiments, convolutional layers, such as convolutional layer 104-A, may exhibit desired properties for training neural networks for image processing tasks, such as object detection. Specifically, the parameters W(l)nmab act as a filter over the input, such that each pixel in the output third-order tensor x(l+1)ijn depends only on the neighboring pixels from the input third-order tensor x(1)ijm. In other embodiments, other types of computational layers may be used instead of the convolution layer previously described.
The second computational layer in convolution-nonlinearity layer 104 is layer 104-B, which comprises a rectified-linear layer, which is a non-linear layer. In some embodiments, non-linear layers, such as rectified-linear layer 104-B, may be included in neural network 100 to allow learning of complicated functions. Excluding non-linear layers, such as layer 104-B, may cause a neural network, such as neural network 100, to be saturated and reduced to a single, simplified, linear layer. The rectified-linear nonlinearity layer is chosen over other types of nonlinear layers to avoid saturation. Saturation may occur when a layer, or type of layer, in a neural network continues to output the same numerical value, such as “1,” even though the inputs into that layer, or type of layer, are changing. For example, a neural network that includes one or more sigmoid function layers may experience saturation when the values of parameters in layers preceding the sigmoid function layers become too large. In contrast, a rectified-linear layer, such as layer 104-B, does not experience saturation during training. Given an input tensor for a rectified-linear layer l (denoted by x(l)ijn) and an output tensor (denoted by x(l+1)ijn) the equation for the “rectified-linear layer is:
x(i+1)ijn=max(0,x(l)ijn)
In
As depicted in
In a certain embodiment, five convolution-nonlinearity layer pairs may yield sufficient accuracy for tracking objects of interest for particular application, such as drone control for following objects of interest, that require estimating relative physical distance of objects in an image. In such embodiments, computer chips and processing times may be optimized such that a neural network 100 with five convolution-nonlinearity layer pairs may detect objects within a series of images in real-time.
According to various embodiments, recurrent step 160, depicted in
A recurrent layer has two input tensors (denoted as xi and h(t)j), both of which are first order. A higher order tensor, such as a third order tensor, may be converted to a lower order tensor as all the dimensions can be combined into a single dimension. For example, all values in a third-order tensor may be listed in a singular vector form. As previously described with reference to
h(t+1)k=Σi(Ukixi)+ΣjVkjh(t)j)
The equation for computing the output of a quadratic recurrent layer is:
h(t+1)k=ΣmΣi(xmUmkixi)+ΣnΣj(h(t)nVnkjh(t)j)
Because a quadratic recurrent layer, such as layers 124-A and 126-A, has parameter tensors with higher orders than the parameter tensors of a linear recurrent layer, a neural network 100 that utilizes quadratic recurrent layers may have a higher capacity to solve complicated tasks, such as object detection, because of the higher complexity of the layers. The use of quadratic recurrent layers improves the accuracy of a neural network 100 and allows neural network 100 to have improved learning capabilities during a training mode by allowing a higher maximum accuracy value. For example, the final accuracy of neural network 100 with quadratic recurrent layers after being fully trained using a given dataset of images would be higher than that of neural network 100 with linear recurrent layers instead of quadratic recurrent layers, given the same dataset. Furthermore, a quadratic recurrent layer also provides more accurate predictions in inference mode by providing a quadratic approximation, as opposed to a linear approximation provided by a linear recurrent layer. The inputs (xi and H(t)j) of a quadratic recurrent layer multiply each other while also multiplying the parameter tensors (Umki and Vnkj). This multiplication with itself allows for a more complex function, which yields more accurate box predictions. In other words, standard neural networks only multiply input with weights. However, using the quadratic layers, a neural network can multiply an input with itself and weights, which lead to higher accuracy in the results.
As previously mentioned, first-order tensor 114 may be a first input into each quadratic recurrent layer, including 124-A, 126-A, 128-A, etc. As the first recurrent layer, quadratic recurrent layer 124-A may then use first order tensor 114 and an initial zero value for the h(t)j input tensor to generate output 124-OA. Output 124-OA of quadratic recurrent layer 124-A is also input into a standard linear layer, such as linear layer 124-B. Similarly, the output 126-OA of quadratic recurrent layer 126-A is fed into a subsequent quadratic recurrent layer 128-A, as well as linear layer 126-B. In some embodiments, linear layers, such as 124-B, may be utilized as a final layer which takes in tensor input 124-OA and outputs a first order tensor 124-OB with a dimension of five. In some embodiments, the input tensor is denoted as h(t)k the output tensor is denoted as y(t)j, and the parameter tensors are denoted as Tji and sj. The equation for the output 124-OB of linear layer 124-B is:
yj=Σi(Tjihi)+sj.
In some embodiments, the five dimensions of an output y(t)j of a linear layer, such as output 124-OB, may refer to: the (x, y) coordinates of the center of the box, the height of the box, the width of the box, and a probability that the box (location and size) which neural network 100 has predicted is accurate. This probability allows neural network 100 to assign a confidence to the output boxes. During training mode in certain embodiments, neural network 100 is trained to have a probability of 1 for any box which matches a label, and a probability of 0 for any boxes it outputs which do not correspond to a label. In some embodiments, if the probability is greater than or equal to 0.5, neural network 100 interprets the box as a correct prediction. In some embodiments, if the probability is less than 0.5, neural network 100 ignores the prediction as incorrect.
In certain embodiments, recurrent step 160 may include multiple recurrent layer pairs, such as recurrent layer pair 124, comprising a quadratic recurrent layer and linear layer. As previously described, the output of each quadratic recurrent layer is fed into the linear layer of the recurrent layer pair and a subsequent quadratic recurrent layer in a subsequent recurrent layer pair. For example, output 124-OA of quadratic recurrent layer 124-A is fed into a subsequent quadratic recurrent layer 126-A, as well as linear layer 124-B. Recurrent layers are termed “recurrent” because the output is fed back into the layer as one of the two inputs. A recurrent step 160 is implemented for one object type, such as people, vehicles, trees, etc., and multiple recurrent steps 160 may be implemented for each image. Each recurrent layer pair in a recurrent step 160, such as layer pair 124, corresponds to a single box being output for an identified object of a single object type in an image. Subsequent boxes are output by quadratic recurrent layer-linear layer pairs until neural network 100 outputs a probability of a box that is less than 0.5, at which point, neural network 100 determines that there are no more boxes to be output. If neural network 100 fails to output a box for any object of interest, whether identified or not, neural network 100 is treated as if it output a box of size 0 with coordinates (0, 0), and probability 0. If there are objects of another type detected, neural network 100 then implements another recurrent step 160 for objects of that type.
In some embodiments, recurrent layers, such as quadratic recurrent layers and linear recurrent layers, may be well suited to tasks of generating a number of outputs, such as boxes, that vary from one image to the next. For example, one image may include only one object of interest, and therefore only one box to be output by neural network 100. Another image may include fifty objects of interest, and therefore fifty boxes may be output by neural network 100. However, a recurrent layer, such as quadratic recurrent layer 124-A, may include a state vector in its output 124-OA, which is then fed into a subsequent recurrent layer 126-A. Such a state vector may be trained to keep track of which boxes neural network 100 has already output, and learns to output the boxes one at a time, without repeating a box. Other types of layers, such as linear layers, may have a fixed number of outputs and must output a fixed number of boxes. For example, a linear layer may be designed to output a tensor with five hundred dimensions corresponding to the five dimensions of each output box. This means that that linear layer must output one hundred boxes and cannot identify more than one hundred objects in each image. A linear layer may be designed to output a tensor with a very large number of tensors, but it may be impractical due to increased computational time. This may also lead to inaccuracies when there are fewer objects in an image because a linear layer with five hundred outputs must output one hundred boxes for each image despite the number of actual objects.
In some embodiments, a neural network, such as neural network 100, may be able to detect multiple types of objects. Examples of the various types of objects that may be detected include, but are not limited to: people, faces, vehicles, trees, etc. In various embodiments, substantial sharing of parameters occurs between different layers. In some embodiments, some layers may share parameters between different types of objects, while other layers may have distinct sets of parameters for each type of object.
The output of convolution-nonlinearity step 250 may be third-tensor output 112-OB in
In some embodiments, after the neural network has been sufficiently trained (using a threshold number of datasets), the neural network can then recognize new objects that the system has never encountered during training. In such embodiments, the new objects resemble or are in the same category as identified objects during the training phase. For example, if one identified object in the training sets is a car, then the neural network, in an inference mode, may detect a Ferrari as a car even if the neural network system has never seen a Ferrari before. This is because repeated passes of known input into the neural network trains the neural network to recognize different versions of the object as long as a threshold level of similarity exists. In some embodiments, such a threshold is determined by actual pixel value comparisons or image intensity differences. In some embodiments, such thresholds for determining whether a group of pixels in an image constitute an object are automatically set and/or inherently learned by the neural network system through training and not by humans setting threshold values.
In training mode, the output boxes predicted by a neural network for an image may be compared to information of that image in a labeled dataset, which include the center location, height, and width of the smallest possible bounding box around each object of interest for that image. In some embodiments, the information is provided as pixel coordinates. For each predicted output box on an image, neural network 100 may compute the errors between the predicted output box's center, height, width, and probability and that of the labeled box's center, height, width, and probability in the dataset. The probability of each labeled box in an image of the labeled dataset will always be 1.0. The parameters within the computational layers of neural network 100 are then updated with a stochastic gradient descent algorithm combined with a standard back-propagation technique that slowly update the initial random values of the parameters such that neural network 100 outputs increasingly accurate center location, height, and width for the minimum bounding box around each object of interest within an image. The general equation for updating parameters within neural network 100 by stochastic gradient using the back-propagation algorithm is as follows: A parameter tensor, W(n)ij, may represent a second order tensor of parameters at some iteration (n) within the training mode. The gradient of the parameter tensor which may be computed using the algorithm's output box coordinates and the labeled box coordinates, is denoted as ∇Wij(n) (at the same iteration n). Then, the new parameters for the iteration (n+1) are computed as:
Wij(n+1)=Wij(n)−α∇Wij(n)
where α is the learning rate, which is a scalar hyper-parameter of the training mode algorithm. The specific value of α is application dependent. In some embodiments, the value of α may be 0.0005. The gradients mentioned above may be computed in the standard manner for stochastic gradient descent. In a further embodiment, neural network 100 may be implemented in a system of training a neural network to detect objects of interest utilizing data augmentation and data generation algorithms
In some embodiments, this process is used to train neural network 100 until the predictions for new images no longer improve. In other embodiments, this process may be used to train neural network 100 until neural network 100 is deemed sufficiently trained. In some embodiments, determining when neural network 100 is sufficiently trained includes withholding a subset of images of the labeled dataset. Throughout the training mode, an image from the withheld subset is periodically inputted into neural network 100 to determine the accuracy of predicted output boxes for that image. Once neural network 100 consistently identifies objects at a predefined threshold accuracy on the subset of images, neural network may be deemed sufficiently trained. In various embodiments, the specific value of the predefined threshold may vary and may be dependent on various applications. For example, for the application of drone control for following objects of interest, a threshold of 90% accuracy may be used. Once neural network 100 is deemed to be sufficiently trained, neural network 100 may be used to perform predictions in the inference mode. Neural network 100 may output boxes on predicted objects of interest on new images which are unlabeled.
Once sufficiently trained, neural network 100 may recognize new objects corresponding to categories of objects it has been trained on. For example, neural network 100 may identify a car it that it was never exposed to during the training mode. It may identify such car based on other similar objects in corresponding categories of the labeled dataset. In some embodiments, pixel intensity may be used for this identification. For example, the image intensity difference between the object in the image and one or more objects in the labeled dataset may be calculated to determine if the object in the image matches objects from a particular category in the labeled dataset. In some embodiments, an error or difference for each color channel is calculated between each corresponding pixel in the two frames. Then an average error of the RGB value of all color channels is derived for each pixel. Next, the average error for all pixels within the first and second frames is calculated. In some embodiments, the image intensity difference between two objects will be a value between 0 and 255. A lower image intensity difference value corresponds to a closer image match between the objects.
In some embodiments, a threshold value for pixel intensity may be used to determine a match. In various embodiments, the threshold values are not provided by human input, but instead are inherently learned by neural network 100 through training. In other embodiments, other methods may be used to identify unknown objects, such as by comparing tensor values.
According to various embodiments, neural network 100 may be used for real-time detection on a sequence of images from a streaming video. As used herein, “real-time” is defined as running at a sufficient frame-rate such that a human does not perceive any interruption or “choppiness” between images in a video feed. The human visual system has been measured to process approximately ten to twelve separate images per second such that it perceives each image individually. In an embodiment, neural network 100 may be able to process images at a rate of approximately 25 frames-per-second, which may appear as a fluid video stream. In other embodiments, a neural network my obtain image inputs from any type of video recording device, such as a smartphone. In further embodiments, neural network may be implemented in a system for tracking objects of interest, calculating relative distances of objects of interests, and drone control for following objects of interest. In yet further embodiments, neural network 100 may be implemented in a system for gesture recognition and virtual reality rendering.
When operating in the training mode 403, neural network 100 passes a dataset into neural network at 405. In some embodiments, the dataset may comprise a plurality of images with known identified objects of interest. In further embodiments, the images of the dataset may be labeled with the information including the center location, height, and width of the smallest possible bounding box around each known identified object of interest for that image. In some embodiments, passing the dataset into the neural network may comprise inputting the pixels of each image, such as image pixels 102, in the dataset as third-order tensors into a plurality of computational layers, such as those described in
At 407, neural network 100 is trained to accurately output a box size 409 and a center location 411 of an object of interest. In some embodiments, box size 409 corresponds to the smallest possible bounding box around the object of interest. In some embodiments, center location 411 corresponds to the location of the center of the bounding box. In some embodiments, training neural network 100 includes comparing the predicted output boxes to the information labeled in the dataset and computing the errors by between the predicted output boxes and the labeled information. Training neural network 100 may further include updating the parameters within the computational layers of convolution-nonlinearity step 401 and recurrent step 402 with a stochastic gradient descent algorithm combined with a standard back-propagation technique that slowly change the initial random values of the parameters such that neural network 100 outputs increasingly accurate center location, height, and width for the minimum bounding box around each object of interest within an image. In some embodiments, neural network is trained until neural network 100 is determined to be sufficiently trained. In some embodiments, a subset of labeled images within the dataset are withheld and input into neural network 100 to determine the accuracy of predicted output boxes for that image. Once neural network achieves a predefined threshold accuracy on the subset of images, neural network may be deemed sufficiently trained. In various embodiments, the specific value of the predefined threshold may vary and may be dependent on various applications.
Once neural network 100 is deemed to be sufficiently trained, neural network 100 may be used to perform predictions in the inference mode 413. When operating in the inference mode 413, an image 417 is passed into the neural network at 415. The image 417 is not part of the dataset from step 405. In some embodiments, the pixels of image 417 are input into neural network 100 as third-order tensors, such as image pixels 102. In some embodiments, the image pixels are input into a plurality of computational layers within convolution-nonlinearity step 401 and recurrent step 402 as described in step 405.
The computational layers of neural network 100 transform the tensor inputs to automatically identify an object of interest at 419. As previously described, the computational layers of convolution-nonlinearity step 401 transform the input pixels into features comprising high-dimensional vector representations that are utilize in object detection. At step 421, a box 423 is automatically drawn around each object of interest identified by neural network 100. The box 423 drawn around the identified object of interest corresponds to the smallest possible bounding box around the object of interest. As previously described, the computational layers of recurrent step 402 translate the high-dimensional vector representation features into output boxes for predicted objects of interest in the image identified by neural network 100. In some embodiments, neural network 100 may continue to output boxes for predicted objects of interest until the probability that the box is accurate is less than 0.5, as in training mode 403.
At 505, the third-order tensor is input into a convolution-nonlinearity layer pair 507 in the convolution-nonlinearity step 503. In some embodiments, convolution-nonlinearity layer pair 507 may be convolution-nonlinearity layer pair 104 and may comprise a convolution layer, such as convolution layer 104-A, followed by a rectified linear layer, such as rectified linear layer 104-B. At 509, a modified third-order tensor is output by convolution-nonlinearity layer pair 507.
In some embodiments, the modified third-order tensor may be input into a subsequent convolution-nonlinearity layer pair 507 which outputs a further modified third-order tensor, repeating steps 505 and 509. If there is a subsequent convolution-nonlinearity layer pair 507 within convolution-nonlinearity step 503, then the modified third-order tensor output from step 509 is input into the subsequent convolution-nonlinearity layer pair 507 at 505. In some embodiments, the subsequent convolution-nonlinearity layer pair 507 may be convolution-nonlinearity layer pairs 106, 108, 110, and 112. In various embodiments, convolution-nonlinearity step 503 may comprise any number of convolution-nonlinearity layer pairs 507. In some embodiments, the convolution-nonlinearity layer pairs 507 within convolution-nonlinearity step 503 transform the input tensor into features comprising high-dimensional vector representations that may be utilized in object detection. The more convolution-nonlinearity layer pairs 507 that are utilized, the better conditioned for the task of object detection each output modified third-order tensor will be at 509. However, with more convolution-nonlinearity layer pairs 507, more labeled images may be required to train neural network 100 to a desired accuracy. Additionally, more computational time may be required to input tensors through more convolution-nonlinearity layer pairs 507. Once there are no more subsequent convolution-nonlinearity layer pairs 507, a final modified third-order tensor is output at 509. At 511, neural network 100 converts the final modified third-order tensor into a converted first-order tensor. In various embodiments, a higher order tensor, such as a third order tensor, may be converted to a lower order tensor as all the dimensions can be combined into a single dimension. For example, all values in a third-order tensor may be listed in a singular vector form.
At 513, the converted first-order tensor enters recurrent step 504, shown in
If modified first-order tensor 124-OB indicates that the probability that the bounding box is accurate is greater than or equal to 0.5 then neural network 100 will output a bounding box 525 around the predicted object of interest at 523. The bounding box 525 may be sized and located based on the dimensions 521 contained in first-order tensor 124-OB. In some embodiments, bounding box 525 is the smallest possible bounding box that would fully encompass the object of interest. Additionally, neural network 100 begins identifying a second predicted object by inputting the modified first-order tensor 124-OA output from the previous quadratic recurrent layer (step 515) and the converted first order tensor output from the last convolution-nonlinearity layer pair (step 511) into a subsequent quadratic recurrent layer at 527 to repeat steps 515 to 521. In some embodiments, the subsequent quadratic recurrent layer may be quadratic recurrent layer 126-A. At 515, the subsequent quadratic recurrent layer 126-A outputs another modified first-order tensor, such as output 126-OA. The neural network goes through steps 517 and 519 again to output a modified first-order tensor, such as output 126-OB with five dimensions 521. If the probability within dimensions 521 of output 126-OB is greater than or equal to 0.5, neural network 100 will repeat step 523 to output a bounding box 525 around a second predicted object of interest. Neural network 100 will also repeat step 527 to identify a third predicted object of interest. Steps 515, 517, 519, 523 and 527 will be repeated by neural network 100 until the modified first-order tensor at output at step 519 indicates that the probability that the bounding box is accurate is less than 0.5.
If, on the other hand, dimensions 521 of modified first-order tensor 126-OB indicate that the probability is less than 0.5, neural network 100 will not output a bounding box 525 around the second predicted object of interest and cease outputting any more bounding boxes 525 onto the image. Furthermore, modified-first order tensor 126-OA output by the previous quadratic recurrent layer 126-A in step 515 will not be input into a subsequent quadratic recurrent layer at 527.
In some embodiments, neural network 100 implements recurrent step 504 for each object type, such as people, cars, faces, trees, etc. For example, a recurrent step 504 may be recurrent step 260-A which outputs boxes 260-OA for all predicted objects of interest that are people. Another recurrent step 504 may be recurrent step 260-B which outputs boxes 260-OB for all predicted objects of interest that are cars. All quadratic recurrent layers within recurrent step 260-A may share tensor parameters, such as tensor parameter U(person)mki. All quadratic recurrent layers within recurrent step 260-B may share tensor parameters, such as tensor parameter U(car)mki. In some embodiments, neural network 100 implements one convolution-nonlinearity step 503 for all predicted objects of interest, and all computational layers within convolution-nonlinearity step 503 may share tensor parameters.
Once neural network 100 has identified all predicted objects of interest of all types and output bounding boxes 525 for each predicted object of interest, neural network 100 begins training step 550 (shown in
Method 500 ends at 533 for the current image 502 input into the neural network and a subsequent image 502 from the labeled dataset is passed into neural network 100 at 501 to be used to train the parameters of neural network 100. In some embodiments, neural network 100 may implement method 500 for each labeled image 502 in the dataset until the predictions indicated by dimensions 521 no longer improve. In other embodiments, neural network 100 may implement method 500 for labeled images 502 in the dataset until neural network 100 consistently identifies objects in each image at a predetermined accuracy threshold. As previously described, in some embodiments, a subset of images 502 are withheld and not passed into neural network 100. At any point in the training of neural network 100, a withheld image 502 from the withheld subset may be passed into neural network 100 at 501 to determine the accuracy of predicted output boxes 525 for the withheld image 502. Once neural network 100 achieves a predefined threshold accuracy on the subset of images, neural network may be deemed sufficiently trained. In various embodiments, the specific value of the predefined threshold may vary and may be dependent on various applications. For example, for the application of drone control for following objects of interest, a threshold of 90% accuracy may be desired. This means that once neural network 100 can consistently identify 90% or more of the objects within a given image, neural network 100 may be deemed sufficiently trained. Neural network 100 may then be used to output boxes on predicted objects of interest on new unlabeled images 502 in the inference mode by implementing method 600 as will be described below.
At 605, the third-order tensor is input into a convolution-nonlinearity layer pair 607 in the convolution-nonlinearity step 603. In some embodiments, convolution-nonlinearity layer pair 607 may be convolution-nonlinearity layer pair 104 and may comprise a convolution layer, such as convolution layer 104-A, followed by a rectified linear layer, such as rectified linear layer 104-B. At 609, a modified third-order tensor is output by convolution-nonlinearity layer pair 607.
In some embodiments, the modified third-order tensor may be input into a subsequent convolution-nonlinearity layer pair 607 which outputs a further modified third-order tensor, repeating steps 605 and 609. If there is a subsequent convolution-nonlinearity layer pair 607 within convolution-nonlinearity step 603, then the modified third-order tensor output from step 609 is input into the subsequent convolution-nonlinearity layer pair 607 at 605. In some embodiments, the subsequent convolution-nonlinearity layer pair 607 may be convolution-nonlinearity layer pairs 106, 108, 110, and 112. In various embodiments, convolution-nonlinearity step 603 may comprise any number of convolution-nonlinearity layer pairs 607. In some embodiments, the convolution-nonlinearity layer pairs 607 within convolution-nonlinearity step 603 transform the input tensor into features comprising high-dimensional vector representations that may be utilized in object detection. The more convolution-nonlinearity layer pairs 607 that are utilized, the better conditioned for the task of object detection each output modified third-order tensor will be at 609. However, more computational time may be required to input tensors through more convolution-nonlinearity layer pairs 607. Once there are no more subsequent convolution-nonlinearity layer pairs 607, a final modified third-order tensor is output at 609. At 611, neural network 100 converts the final modified third-order tensor into a converted first-order tensor. In various embodiments, a higher order tensor, such as a third order tensor, may be converted to a lower order tensor as all the dimensions can be combined into a single dimension. For example, all values in a third-order tensor may be listed in a singular vector form.
At 613, the converted first-order tensor enters recurrent step 604, shown in
If modified first-order tensor 124-OB indicates that the probability that the bounding box is accurate is greater than or equal to 0.5 then neural network 100 will output a bounding box 625 around the predicted object of interest at 623. The bounding box 625 may be sized and located based on the dimensions 621 contained in first-order tensor 124-OB. In some embodiments, bounding box 625 is the smallest possible bounding box that would fully encompass the object of interest. Additionally, neural network 100 begins identifying a second predicted object by inputting the modified first-order tensor 124-OA output from the previous quadratic recurrent layer (step 615) and the converted first order tensor output from the last convolution-nonlinearity layer pair (step 611) into a subsequent quadratic recurrent layer at 627 to repeat steps 615 to 621. In some embodiments, the subsequent quadratic recurrent layer may be quadratic recurrent layer 126-A. At 615, the subsequent quadratic recurrent layer 126-A outputs another modified first-order tensor, such as output 126-OA. The neural network goes through steps 617 and 619 again to output a modified first-order tensor, such as output 126-OB with five dimensions 621. If the probability within dimensions 621 of output 126-OB is greater than or equal to 0.5, neural network 100 will repeat step 623 to output a bounding box 625 around a second predicted object of interest. Neural network 100 will also repeat step 627 to identify a third predicted object of interest. Steps 615, 617, 619, 623 and 627 will be repeated by neural network 100 until the modified first-order tensor at output at step 619 indicates that the probability that the bounding box is accurate is less than 0.5.
In some embodiments, neural network 100 implements recurrent step 604 for each object type, such as people, cars, faces, trees, etc. For example, a recurrent step 604 may be recurrent step 260-A which outputs boxes 260-OA for all predicted objects of interest that are people. Another recurrent step 604 may be recurrent step 260-B which outputs boxes 260-OB for all predicted objects of interest that are cars. All quadratic recurrent layers within recurrent step 260-A may share tensor parameters, such as tensor parameter U(person)mki. All quadratic recurrent layers within recurrent step 260-B may share tensor parameters, such as tensor parameter Ucar)mki. In some embodiments, neural network 100 implements one convolution-nonlinearity step 603 for all predicted objects of interest, and all computational layers within convolution-nonlinearity step 603 may share tensor parameters.
If, on the other hand, dimensions 621 of modified first-order tensor 126-OB indicate that the probability is less than 0.5, neural network 100 will not output a bounding box 625 around the second predicted object of interest and cease outputting any more bounding boxes 625 onto the image. Furthermore, modified-first order tensor 126-OA output by the previous quadratic recurrent layer 126-A in step 615 will not be input into a subsequent quadratic recurrent layer at 627. Method 600 ends at 629 for the current image 602 input into the neural network and a subsequent image 602 is passed into neural network 100 at 601 to have possible objects predicted and identified by neural network 100. According to various embodiments, neural network 100 may implement method 600 to detect objects in a sequence of images in real-time. For example, neural network 100 may be configured to process images at a rate of approximately 25 frames-per-second, which may appear as a fluid video stream.
Particular examples of interfaces supports include Ethernet interfaces, frame relay interfaces, cable interfaces, DSL interfaces, token ring interfaces, and the like. In addition, various very high-speed interfaces may be provided such as fast Ethernet interfaces, Gigabit Ethernet interfaces, ATM interfaces, HSSI interfaces, POS interfaces, FDDI interfaces and the like. Generally, these interfaces may include ports appropriate for communication with the appropriate media. In some cases, they may also include an independent processor and, in some instances, volatile RAM. The independent processors may control such communications intensive tasks as packet switching, media control and management.
According to particular example embodiments, the system 700 uses memory 703 to store data and program instructions for operations including training a neural network, such as method 500, and object detection by a neural network, such as method 600. The program instructions may control the operation of an operating system and/or one or more applications, for example. The memory or memories may also be configured to store received metadata and batch requested metadata.
Because such information and program instructions may be employed to implement the systems/methods described herein, the present disclosure relates to tangible, or non-transitory, machine readable media that include program instructions, state information, etc. for performing various operations described herein. Examples of machine-readable media include hard disks, floppy disks, magnetic tape, optical media such as CD-ROM disks and DVDs; magneto-optical media such as optical disks, and hardware devices that are specially configured to store and perform program instructions, such as read-only memory devices (ROM) and programmable read-only memory devices (PROMs). Examples of program instructions include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter.
While the present disclosure has been particularly shown and described with reference to specific embodiments thereof, it will be understood by those skilled in the art that changes in the form and details of the disclosed embodiments may be made without departing from the spirit or scope of the present disclosure. It is therefore intended that the present disclosure be interpreted to include all variations and equivalents that fall within the true spirit and scope of the present disclosure. Although many of the components and processes are described above in the singular for convenience, it will be appreciated by one of skill in the art that multiple components and repeated processes can also be used to practice the techniques of the present disclosure.
This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application No. 62/261,260, filed Nov. 30, 2015, entitled SYSTEM AND METHOD FOR IMPROVED GENERAL OBJECT DETECTION USING NEURAL NETWORKS, the contents of each of which are hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
6285992 | Kwasny et al. | Sep 2001 | B1 |
9704044 | Curlander | Jul 2017 | B1 |
9779546 | Hunt | Oct 2017 | B2 |
9818235 | Rotman | Nov 2017 | B1 |
20050278408 | Matsumoto | Dec 2005 | A1 |
20140180989 | Krizhevsky et al. | Jun 2014 | A1 |
20150100530 | Mnih et al. | Apr 2015 | A1 |
20150170002 | Szegedy et al. | Jun 2015 | A1 |
20170337512 | Saito | Nov 2017 | A1 |
Number | Date | Country |
---|---|---|
2017095948 | Jun 2017 | WO |
Entry |
---|
“International Application Serial No. PCT/US16/64254, International Search Report and Written Opinion dated Feb. 16, 2017”, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20170154425 A1 | Jun 2017 | US |
Number | Date | Country | |
---|---|---|---|
62261260 | Nov 2015 | US |