SEQUENTIAL TRAINING METHOD FOR HETEROGENEOUS CONVOLUTIONAL NEURAL NETWORK

A method of training a heterogeneous convolutional neural network (HCNN) system includes identifying batch sizes for a first task and a second task, defining images for a first batch, a second batch, and a batch x for the first task, defining images for a first batch, a second batch, and a batch y for the second task, training the HCNN using the first batch for the first task, training the HCNN using the first batch for the second task, training the HCNN using the second batch for the first task, training the HCNN using the second batch for the second task. The sequential training continues for each of the batches and each of the tasks until the end of an epoch. When the epoch is complete, the images for each batch and each task are reshuffled.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
FIELD

The present disclosure relates generally to artificial intelligence convolutional neural networks, and more particularly to a sequential training method for a heterogeneous convolutional neural networks (HCNN).

BACKGROUND

The statements in this section merely provide background information related to the present disclosure and may or may not constitute prior art.

Convolutional neural networks (CNNs) are being used to solve problems in computer vision, including image classification, object detection, and object segmentation problems. A CNN may be comprised of one or more convolutional layers, typically including a subsampling step, followed by one or more fully connected layers similar to a standard multilayer neural network. The architecture of a CNN is designed to take advantage of the 2D structure of an input image including pixel images from a camera. This includes local connections and tied weights followed by some form of pooling which produce translation invariant features. The benefits of CNNs include they are easy to train and have fewer parameters than fully connected networks with the same number of hidden units.

Conventional CNNs do not solve two or more independent problems at the same time. For example, known CNNs when applied to automobile vehicle assist and autonomous control systems cannot perform object detection including classification and localization, and road segmentation (lane detection) problems simultaneously. This requires the vehicle computer system to perform multiple parallel or independent computational steps, thereby requiring longer computational time and increased memory.

A Heterogenous Convolutional Neural Network (HCNN), described in commonly owned U.S. Pat. App. No. ______, filed ______, herein incorporated by reference, addresses these issues. A HCNN is a CNN that utilizes common low-level feature extraction layers to extract features for more than one CNN network (e.g. object detection and free space classification, lane detection, and drivable surface determination, etc.) concurrently. However, the HCNN is more difficult to train than the CNN. A CNN typically uses annotated image training sets that identify the content of the image that the CNN is supposed to detect and identify. If the CNN is trained to detect and classify objects (e.g. a passenger car) the CNN will require a large number of images where all objects (passenger cars) are identified in a way that the CNN can detect. The CNN then uses ‘back-propagation’ techniques to minimize the loss function that defines how well the object of interest is detected by adjusting the weights of the connections between neurons in individual layers.

The available set of annotated images (n) is usually very large and will contain a large variety of objects that are presented to the CNN for training purposes. The task of presenting the CNN the complete image data is referred to as an ‘epoch’. Images are usually not trained in one operation but instead are broken up in ‘b’ ‘batches’ with b=n/bs with ‘bs’ being the batch size. A batch describes the process of presenting the CNN with the image (forward pass) and then adjusting the weights (backward pass). After all batches have been processed the epoch is complete and then the images are shuffled, new batches are created, and another epoch begins.

However, the HCNN requires image sets annotated for all specified machine vision tasks, for example object detection and free space classification, lane detection, and drivable surface determination, etc., thus complicating the training. One option is to train the HCNN in one specified machine vision task first and then to proceed with the other. In this method, the common feature extraction layer first receives training for the first machine vision task and then during the training of the next task the weights that were optimized for the previous task will be solely optimized for the second task and some of the fidelity for the previous task will be lost. Thus, while useful, there remains a need in the art for a method to train an HCNN that improves the accuracy of the HCNN.

SUMMARY

A method of training a heterogeneous convolutional neural network (HCNN) system includes identifying batch sizes for a first task and a second task, defining images for a first batch and a second batch for the first task, defining images for a first batch and a second batch for the second task, training the HCNN using the first batch for the first task, training the HCNN using the first batch for the second task, training the HCNN using the second batch for the first task, training the HCNN using the second batch for the second task, and reshuffling the images for each batch.

Further areas of applicability will become apparent from the description provided herein. It should be understood that the description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the present disclosure.

DRAWINGS

The drawings described herein are for illustration purposes only and are not intended to limit the scope of the present disclosure in any way.

FIG. 1 is a pictorial diagram of a roadway visibility and identification range of a host vehicle having a heterogeneous convolutional neural network (HCNN) system of the present disclosure;

FIG. 2 is a diagrammatic presentation of the elements of the HCNN system of the present disclosure;

FIG. 3 is a flow chart illustrating a method for training the HCNN system according to the present disclosure;

FIG. 4a is a flow diagram describing a first step in a multi-step training process to freeze part of the network and minimize a loss function L1 for training the CNN system of FIG. 2;

FIG. 4b is a flow diagram describing a second step in a multi-step training process to freeze part of the network and minimize a loss function L2 for training the CNN system of FIG. 2; and

FIG. 4c is a flow diagram describing a third step in a multi-step training process to freeze part of the network and minimize a loss function Ln for training the CNN system of FIG. 2.

DETAILED DESCRIPTION

The following description is merely exemplary in nature and is not intended to limit the present disclosure, application, or uses.

Referring to FIG. 1, a heterogeneous convolutional neural network (HCNN) system 10 receives object attribute data in a host vehicle 12 as it travels on a road or highway 14 in a general path of travel “A” in a third lane of the highway 14 together with other vehicles on the highway 14. The other vehicles can include for example a first vehicle 16 such as a truck in an adjacent second lane but in front of the host vehicle 12, a second vehicle 18 which may be partially blocked from direct view to the host vehicle 12 by the first vehicle 16, as well as a third vehicle 20 such as a car travelling in a third lane on the highway 14. Object attribute data may also be received from a fourth vehicle 24 which is stopped or disabled and may be on the highway 14 or off to a side of the highway 14. The image received by the system may also include a pedestrian 26. It should be appreciated that various other objects may be detected by the host vehicle 12.

The HCNN system 10 receives image data via a visual reception system 22 such as a camera, a LIDAR, or a RADAR system which collects the object attribute data, for example as a pixel image 30 shown and described in reference to FIG. 2. In this manner the object attribute data may be utilized for Advanced Driver Assist (ADAS) technology by also utilizing sensors that are in an existing centralized vision processor. The visual reception system 22 may further receive information as object imaging data defining the pedestrian 26 in an immediate vicinity of the fourth vehicle 24, and fixed objects such as bridges, guard rails, trees, highway signs, and the like that are all located within a host vehicle predefined sensing and transmission window 28 of the HCNN system 10.

Referring to FIG. 2 and again to FIG. 1, the heterogeneous convolutional neural network (HCNN) system 10 of the present disclosure receives an input image 30 generated by the visual reception system 22. The HCNN system 10 may further receive additional input images over a predetermined period of time, for example once every 30 ms as the host vehicle 12 travels along the highway 14. It is desirable to generate at least two network outputs using the data in the input image 30, by solving at least two independent problems. A first network output defining a detected object table 32 provides a list of detected objects, including object types 34 such as a car, a truck, a pedestrian, and the like, and a confidence level 36 in the accuracy of defining the object type 34. Production of the detected object table 32 requires solutions of classification and localization of the objects. A second network output defining a segmentation data set 38 provides data to the host vehicle 12 related to lane detection, lane conditions, and lane positions relative to the host vehicle 12 within the transmission window 28 of the HCNN system 10.

The HCNN system 10 includes a controller 40 which controls the visual reception system 22 and processes the data in the input image 30. The controller 40 is a non-generalized, electronic control device having a preprogrammed digital computer or processor 42, memory or non-transitory computer readable medium 43 used to store data such as control logic, software applications, instructions, computer code, data, lookup tables, etc., and input/output ports 45. The computer readable medium 43 includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory. A “non-transitory” computer readable medium excludes wired, wireless, optical, or other communication links that transport transitory electrical or other signals. A non-transitory computer readable medium includes media where data can be permanently stored and media where data can be stored and later overwritten, such as a rewritable optical disc or an erasable memory device. Computer code includes any type of program code, including source code, object code, and executable code. The processor 42 is configured to execute the code or instructions.

As noted above the HCNN system 10 performs several parallel tasks. A first sub-network 44 performs a first task of object detection, classification, and localization for certain classes of objects (vehicles, pedestrians, traffic signs, traffic lights, and the like,) where the output from the first sub-network 44 is the list of detected objects, detected object table 32, which provides a confidence level and location information for the detected objects. A second sub-network 46 performs a second task of lane detection. A pixel level segmentation is the solution and the output for the second sub-network 46 providing a colored image defining the segmentation data set 38 that indicates the drivable roads or lanes in front of the host vehicle 12. Additional third and more sub-networks, up to an n sub-network 47 outputting a network output n 49, where n is a whole number greater than 1, performing further tasks may also be provided with the HCNN system 10.

The HCNN system 10 includes convolutional neural networks (CNNs) having multiple convolution, pooling and activation layers stacked together with each other. A first set of these layers defines a feature extraction layer (FEL) portion 48 defining the first set of layers directly after and directly receiving the input image 30. The FEL portion 48 conducts a learning operation and thereby learns to represent a first stage of data of the input image 30. The FEL portion 48 includes multiple different stacked layers, wherein the first set of layers (the one directly after and receiving the input image 30) learns to represent data in a very simple form such as horizontal and vertical lines and simple blobs of colors. The following layers of the FEL portion 48 capture more complex shapes such as circles, rectangles, triangles, and the like. The subsequent layers of the FEL portion 48 detect complex combinations of features from the previous layer or layers to form a more meaningful representation such as wheels, faces, grids, and the like. The FEL portion 48 distributes the first stage of data to each of the first sub-network 44 and the second sub-network 46 and the n sub-network 47.

In the first sub-network 44, included with the layers defining the FEL portion 48 is a sub-set of convolution, pooling and activation layers stacked on top of each other defining a first convolution and pooling layer (CPL) portion 50 and a second convolution and pooling layer (CPL) portion 52. The first convolution and pooling layer (CPL) portion 50 receives the first stage of data output from the FEL portion 48 and in a second stage of data captures the more complex shapes more complex shapes including circles, rectangles, triangles, and the like to handle the individual special tasks including object detection, classification, and localization. The third and final grouping of layers defining the second convolution and pooling layer (CPL) portion 52 of the first sub-network 44 then captures a third stage of data defining complex combinations of the features from the FEL portion 48 and the first CPL portion 50 to form a meaningful representation such as wheels, faces, grids, and the like needed to handle the individual special tasks such as object detection, classification, and localization.

Data from each of the FEL portion 48, including the CPL portion 50 and the CPL portion 52 are merged to generate a fully connected layer 54. Non-maximum suppression of the data of the fully connected layer 54 is used to generate output image 56 data having predicted objects identified at specific x, y coordinate locations in the field of the original input image 30, from which the detected object table 32 is generated.

The HCNN system 10 combines different sub-networks such as the first sub-network 44 and the second sub-network 46 to perform multiple tasks efficiently, thereby using a smaller memory footprint (memory saving) and operating faster than running the different sub-networks separately. To accomplish this, the single FEL portion 48 and therefore the tasks performed by the single FEL portion 48 are common to all the CNNs of the first sub-network 44 and the second sub-network 46 (and any additional sub-networks) for HCNN system 10 regardless of the final task performed by each individual CNN. Because the initial volume of data analyzed from the input image 30 is greatest, by performing this analysis only once and using the output of the single FEL portion 48 for the input of each of the sub-networks reduces computational time and memory, and reduces hardware.

A CPL portion 58 of the second sub-network 46 also directly receives the first stage of data from the FEL portion 48 in lieu of providing a separate feature extraction layer for the second sub-network 46. A CPL portion 60 of the second sub-network 46 receives the first stage of data from the CPL portion 50, and a CPL portion 62 of the second sub-network 46 having a 2× deconvolution member 64 receives the output from the CPL portion 52. An output from the deconvolution member 64 and the output from the CPL portion 62 are added and passed through a 2x deconvolution member 66. An output from the deconvolution member 66 and the output from the CPL portion 58 are added and passed through an 8x deconvolution member 68 to generate the segmentation data set 38.

The HCNN system 10 provides a method to combine different networks to perform multiple tasks efficiently in one combined heterogonous network, thus using a smaller memory footprint, saving memory resources. Due to the synergies in the FEL portion 48 the partially combined network performs the tasks faster than running separate networks. The HCNN system 10 is described in one present example for use in a perception kit for an ADAS and autonomous vehicle vision system. The HCNN system 10 performs two tasks simultaneously, which in the example of the ADAS and autonomous vehicle vision system includes lane detection and object detection. The first task in this example is the lane detection task, where a pixel level segmentation is the solution for the problem to determine lanes in the picture or image of the road and the output for this sub-task is a colored image that shows the drivable lanes in front of the host vehicle. The second task is object detection, classification, and localization for certain classes of objects (vehicles, pedestrians, traffic signs, traffic lights, etc.), where the output for this task is a list of detected objects with confidence level and location information.

Turning now to FIG. 3, a method 100 for training the HCNN system 10 is shown. The method 100 is configured to train any number of tasks 1, 2 . . . n where n is a whole number greater than 1. The tasks 1, 2 . . . n may, for example, correspond to the first sub-network 44, the second sub-network 46, up to the n sub-network 47, respectively. Thus, these tasks may include lane detection and object detection, as described above. In general, the method 100 trains each task sequentially using a first batch of images related to the first task, then a second batch of images related to the second task, etc., until the epoch is finished. Then, another epoch is trained after mixing the batches.

The method 100 begins at step 102 where batches sizes for each of the tasks 1, 2 . . . n are identified. Each batch is comprised of annotated images that correspond to the tasks 1, 2 . . . n. A batch size is defined as the number of images within the batch, as noted above. In one example, the batch size is selected from 8, 16, 32, or 64 images. However, it should be appreciated that other batch sizes may be employed.

The method 100 then proceeds to step 104 where batch images for each task are defined. For example, task 1 is assigned batches 1, 2 . . . x where x is a whole number greater than 1. For each of the batches 1, 2 . . . x, a set of annotated images are assigned. These annotated images correspond to the task 1. For example, where task 1 is lane detection, then the annotated images assigned to batches 1, 2 . . . x include annotated lanes that train the HCNN on lane detection. Each of the batches 1, 2 . . . x includes a set of annotated images up to the batch size. Likewise, task 2 is assigned batches 1, 2 . . . y where y is a whole number greater than 1. For each of the batches 1, 2 . . . y, a set of annotated images are assigned. These annotated images correspond to the task 2. For example, where task 2 is object detection, then the annotated images assigned to batches 1, 2 . . . y include annotated objects that train the HCNN on object detection. Each of the batches 1, 2 . . . y includes a set of annotated images up to the batch size. Defining batch images is repeated for n tasks and z batches, where z is a whole number greater than 1.

Next, at step 106, the HCNN is trained sequentially on batches for each of the tasks 1, 2 . . . n. Training the HCNN includes processing a batch of images and determining a loss function. The loss function is determined from comparing the output from a sub-network and comparing the output to the annotated image. The loss function is then used to adjust the weights used in the HCNN. Processing all of the batches completes an epoch. For example, at step 108 the HCNN is trained on the batch 1 images for task 1. Next, at step 110 the HCNN is trained on batch 1 images for task 2. At step 112 the HCNN is trained on batch 1 images for task n. At step 114 the HCNN is trained on batch 2 images for task 1. At step 116 the HCNN is trained on batch 2 images for task 2. At step 118 the HCNN is trained on batch 2 images for task n. The sequential training continues for each of the batches and each of the tasks until at step 120 the HCNN is trained on batch x images for task 1, at step 122 the HCNN is trained on batch y images for task 2, and at step 124 the HCNN is trained on batch z images for task n. At the completion of step 106 an entire epoch has been completed. At step 126 the images are shuffled such that each of the batches are comprised of a new set of images. The method then returns to step 104 to train another epoch. The method 100 may train as many epochs as required to reach an overall detection accuracy by the HCNN.

FIGS. 4a-4c illustrate individual stages of training batches using the method 100 for tasks 1, 2 . . . n. In the example provided, task 1 includes the first sub-network 44, task 2 includes the second sub-network 46, up to task n which includes the n sub-network 47. In each stage a loss function of a specific task of one sub-network is minimized to train the layers that belong to that task while freezing the other sub-network or sub-networks. For example, a loss function (L2) for the road segmentation task of the second sub-network 46 is a binary cross entropy loss, and a loss function (L1) for the object detection task of the first sub-network 44 is a sum of a localization loss (e.g., smooth L1) and a confidence (e.g., a soft-max or multi-class cross entropy loss). When training batches 1, 2 . . . x for task 1, as shown in FIG. 4a, an image 70 from the batches 1, 2 . . . x for task 1 is processed by the FEL portion 48 and then processed by the first sub-network 44 to provide the network output 32. The loss function Li is determined from the network output 32. The second sub-network 46 up through the n sub-network 47 are frozen and do not process the image 70.

When training batches 1, 2 . . . y for task 2, as shown in FIG. 4b, an image 72 from the batches 1, 2, . . . y for task 2 is processed by the FEL portion 48 and then processed by the second sub-network 46 to provide the network output 38. The loss function L2 is determined from the network output 38. The first sub-network 44 up through the n sub-network 47 are frozen and do not process the image 72.

When training batches 1, 2 . . . z for task n, as shown in FIG. 4c, an image 74 from batches 1, 2 . . . z for task n is processed by the FEL portion 48 and then processed by the n sub-network 47 to provide the network output n 49. A loss function Ln is determined from the network output n 49. The first sub-network 44, the second sub-network 46, up through but not including the n sub-network 47 are frozen and do not process the image 74. Thus, training the layers of one task or sub-network does not affect the layers of the other tasks or sub-networks.

A heterogeneous convolutional neural network (HCNN) system 10 of the present disclosure offers several advantages. These include the capability to merge separate machine vision challenges in a single heterogeneous network, thereby reducing overall memory usage and the time needed to run predictions. For automobile vehicle vision systems, this permits object detection including classification and localization and road segmentation including lane detection to be addressed together using output from a single feature extraction layer (FEL) portion of the convolutional neural networks. In addition, each sub-network can be trained using a loss function of that sub-network while freezing the other sub-network or sub-networks. Training the HCNN system 10 using the method 100 increases accuracy by preventing weights from one task overriding weights from another task.

The description of the present disclosure is merely exemplary in nature and variations that do not depart from the gist of the present disclosure are intended to be within the scope of the present disclosure. Such variations are not to be regarded as a departure from the spirit and scope of the present disclosure.

Claims

1. A method of training a heterogeneous convolutional neural network (HCNN) system, comprising:

identifying batch sizes for a first task and a second task;
defining images for a first batch and a second batch for the first task;
defining images for a first batch and a second batch for the second task;
training the HCNN using the first batch for the first task;
training the HCNN using the first batch for the second task;
training the HCNN using the second batch for the first task;
training the HCNN using the second batch for the second task; and
reshuffling the images for each batch.
Patent History
Publication number: 20200184244
Type: Application
Filed: Dec 9, 2019
Publication Date: Jun 11, 2020
Patent Grant number: 11200438
Inventors: Iyad Faisal Ghazi Mansour (Auburn Hills, MI), Heinz Bodo Seifert (Ortonville, MI)
Application Number: 16/707,264
Classifications
International Classification: G06K 9/00 (20060101); G06N 3/08 (20060101); G06N 3/04 (20060101); G06K 9/62 (20060101);