Video surveillance system with object detection and probability scoring based on object class
A video surveillance system uses rule-based reasoning and multiple-hypothesis scoring to detect predefined behaviors based on movement through zone patterns. Trajectory hypothesis spawning allows for trajectory splitting and/or merging and includes local pruning to managed hypothesis growth. Hypotheses are scored based on a number of criteria, illustratively including at least one non-spatial parameter. Connection probabilities computed during the hypothesis spawning process are based on a number of criteria, illustratively including object size. Object detection and probability scoring is illustratively based on object class.
Latest Vidient Systems, Inc. Patents:
- Video surveillance system with rule-based reasoning and multiple-hypothesis scoring
- Video surveillance system in which trajectory hypothesis spawning allows for trajectory splitting and/or merging
- Video surveillance system with rule-based reasoning and multiple-hypothesis scoring
- Video surveillance system that detects predefined behaviors based on predetermined patterns of movement through zones
CROSS-REFERENCE TO RELATED APPLICATION
This application claims the benefit of U.S. provisional patent application No. 60/520,610 filed Nov. 17, 2003, incorporated herein by reference.
BACKGROUND OF THE INVENTION
Multiple object tracking has been one of the most challenging research topics in computer vision. Indeed, accurate multiple object tracking is the key element of video surveillance system where object counting and identification are the basis of determining when security violations within the area under surveillance are occurring.
Among the challenges in achieving accurate tracking in such systems are a number of phenomena. These phenomena include a) false detections, meaning that the system erroneously reports the presence of an object, e.g., a human being, at a particular location within the area under surveillance a particular time; b) missing data, meaning that the system has failed to detect the presence of an object in the area under surveillance that actually is there; c) occlusions, meaning that an object being tracked has “disappeared” behind another object being tracked or some fixed feature (e.g., column or partition) within the area under surveillance; d) irregular object motions, meaning, for example, that an object that was moving on a smooth trajectory has abruptly stopped or changed direction; e) changing appearances of the objects being tracked due, for example, to changed lighting conditions and/or the object presenting a different profile to the tracking camera.
Among the problems of determining when security violations have occurred or are occurring is the unavailability of electronic signals that could be profitably used in conjunction with the tracking algorithms. Such signals include, for example, signals generated when a door is opened or when an access device, such as a card reader, has been operated. Certainly an integrated system built “from the ground up” could easily be designed to incorporate such signaling, but it may not be practical or economically justifiable to provide such signals to the tracking system when the latter is added to a facility after the fact.
SUMMARY OF THE INVENTION
The present invention addresses one or more of the above problems, as well as possibly addressing other problems as well. The invention is particularly useful when implemented in a system that incorporates the inventions that are the subject of the co-pending United States patent applications listed at the end of this specification.
A video surveillance system embodying the principles of the invention computes at least a first set of trajectories of a first set of objects of a particular object class hypothesized to have been moving through an area under surveillance at a previous point in time. The particular class of objects is distinguishable from other objects based said particular class of objects' physical appearance. Objects of that particular class hypothesized to be in said area under surveillance at a current point in time are identified, with at least one of those objects being identified independent of the physical appearance of any objects hypothesized to have been in said area under surveillance at a previous point in time. At least ones of the trajectories are extended to at least ones of the identified objects to develop at least one set of extended trajectories.
The class of objects is illustratively people.
The identification of the objects may include analyzing individual portions of a video image of said area under surveillance to determine if they have features that are characteristic of objects in said particular class using, for example, a neural network trained to recognize objects of the class in question.
The portions of the image that are analyzed may include the entire image but, for efficiency, may be limited to a) portions that seem to represent objects that are moving—this being the so-called “foreground” of the image, or b) a combination of a) with portions selected based on their proximity to a terminating point of at least one of the trajectories of the first set of trajectories.
The image-based multiple-object tracking system in
The system comprises three basic elements: video camera 1502, image processing 103 and alert reasoning 132.
Video camera 102 is preferably a fixed or static camera that monitors and provides images as sequences of video frames. The area under surveillance is illustratively secure area 23 shown in
Image processing 103 is software that processes the output of camera 102 and generates a so-called “top hypothesis” 130. This is a data structure that indicates the results of the system's analysis of some number of video frames over a previous period of time up to a present moment. The data in top hypothesis 130 represents the system's assessment as to a) the locations of objects most likely to actually presently be in the area under surveillance, and b) the most likely trajectories, or tracks, that the detected objects followed over the aforementioned period of time.
An example of one such hypothesis is shown in
Referring again to
The system utilizes a number of inventions to a) analyze the video data, b) determine the top hypothesis at any point in time and b) carry out the alert reasoning.
The alert conditions are detected by observing the movement of objects, illustratively people, through predefined areas of the space under surveillance and identifying an alert condition as having occurred when area-related patterns are detected. A area-related pattern means a particular pattern of movement through particular areas, possibly in conjunction with certain other events, such as card swiping and door openings/closings. Thus certain of the alert conditions are identified as having occurred when, in addition to particular movements through the particular areas having occurred, one or more particular events also occur. If door opening/closing or card swiping information is not available, alert reasoning 132 is nonetheless able to identify at least certain alert conditions based on image analysis alone, i.e., by analyzing the top hypothesis.
As noted above, the objects tracked by this system are illustratively human beings and typical alert conditions are those human behaviors known as tailgating and piggy-backing. Tailgating occurs when one person swipes an access control card or uses a key or other access device that unlocks and/or opens a door and then two or more people enter the secure area before the door is returned to the closed and locked position. Thus, in the example of
Alert reasoning module 132 generates an alert code 134 if any of the predefined alert conditions appear to have occurred. In particular, based on the information in the top hypothesis, alert reasoning module 132 is able to analyze the behaviors of the objects—which are characterized by object counts, interactions, motion and timing—and thereby detect abnormal behaviors, particularly at sensitive zones, such as near the door zone or near the card reader(s). An alert code, which can, for example, include an audible alert generated by the computer on which the system software runs, can then be acted upon by an operator by, for example, reviewing a video recording of the area under surveillance to confirm whether tailgating, piggy-backing or some other alert condition actually did occur.
Moreover, since objects can be tracked on a continuous basis, alert reasoning module 132 can also provide traffic reports, including how many objects pass through the door in either direction or loiter at sensitive zones.
The analysis of the top hypothesis for purposes of identifying alert conditions may be more fully understood with reference to
Dividing the area under surveillance into zones enables the system to identify alert conditions. As noted above, an alert condition is characterized by the occurrence of a combination of particular events. One type of event is appearance of a person in a given zone, such as the sudden appearance of a person in the door zone 231. Another type of event is the movement of a person in a given direction, such as the movement of the person who appeared in door zone 231 through swipe zone 232 to the appearing zone 233. This set of facts implies that someone has come into secure area 23 through door 21. Another type of event is an interaction, such as if the trajectories of two objects come from the door together and then split later. Another type of event is a behavior, such as when an object being tracked enters the swipe zone. Yet another type of event relates to the manipulation of the environment, such as someone swiping a card though one of card readers 24 and 25. The timing of events is also relevant to alert conditions, such as how long an object stays at the swipe zone and the time difference between two objects going through the door.
Certain movement patterns represent normal, non-security-violative activities. For example,
The following table is a list of alert conditions, including tailgating and piggy-backing, that the system may be programmed to detect. It will be seen from this table that, although not shown in FIGS., it is possible to detect certain alert conditions using a camera whose area under surveillance is the non-secure area, e.g., area 22. The table uses the following symbols: A=Person A; B=Person B; L(A)=Location of person A; L(B)=Location of person B; S=Secure Area; N=Non-Secure Area.
In determining whether a particular one of these scenarios has occurred, the system uses a) trajectory length, trajectory motion over time and trajectory direction derived from the top hypothesis and b) four time measurements. The four time measures are enter-door-time, leave-door time, enter-swipe-time and leave-swipe time. These are, respectively, the points in time when a person is detected as having entered the door zone, left the door zone, entered the swipe and left the swipe zone, respectively. In this embodiment the system does not have access to electronic signals associated with the door opening/closing or with card swiping. The computer that carries out the invention is illustratively different from, and not in communication with, the computer that validates the card swiping data and unlocks the door. Thus in the present embodiment, the fact that someone may have opened the door or swiped their card is inferred based on their movements. Thus the designations “A cards in” and “A cards out” in the scenarios are not facts that are actually determined but rather are presented in the table as a description of the behavior that is inferred from the tracking/timing data.
As described above relative to
The timing for Reverse Entry Tailgating requires that one person's door-leave-time is relatively close to another person's enter-door-time.
The timing for Piggybacking is that one person's enter time is close to another person's enter-swipe-time and, in fact, is less than Td.
The timing for Failed Entry/Loitering at Entry as well as for Loitering in Secure Area is that a person is seen in the swipe zone for at least a minimum amount of time, combined with the observance of a U-turn type of trajectory, i.e., the person approached the swipe zone, stayed there and then turned around and left the area.
In any of these scenarios in which the behavior attempted to be detected involves observing that a person has entered either the door zone or the swipe zone, the time that the person spends in that zone needs to be greater than some minimum so that the mere fact that someone quickly passes through a zone—say the swipe zone within the secure area—on their way from one part of the secure zone to another will not be treated as a suspicious occurrence.
Image Processing and Hypothesis Overview
Returning again to
Background information is information that does not change from frame to frame. It therefore principally includes the physical environment captured by the camera. By contrast, the foreground information is information that is transient in nature. Images of people walking through the area under surveillance would thus show up as foreground information. The foreground information is arrived at by subtracting the background information from the image. The result is one or more clusters of foreground pixels referred to as “blobs.”
Each foreground blob 108 is potentially the image of a person. Each blob is applied to a detection process 110 that identifies human forms using a convolutional neural network that has been trained for this task. More particularly, the neural network in this embodiment has been trained to recognize the head and upper body of a human form. The neural network generates a score, or probability, indicative of the probability that the blob in question does in fact represent a human. These probabilities preferably undergo a non-maximum suppression in order to identify a particular pixel that will be used as the “location” of the object. A particular part of the detected person, e.g., the approximate center of the top of the head, is illustratively used as the “location” of the object within the area under surveillance. Further details about the neural network processing are presented hereinbelow.
Other object detection approaches can be used. As but one example, one might scan the entire image on a block-by-block or other basis and apply each block to the neural network in order to identify the location of humans, rather than first separating foreground information from background information and only applying foreground blobs to the neural network. The approach that is actually used in this embodiment, as described above, is advantageous, however, in that it reduces the amount of processing required since the neural network scoring is applied only to portions of the image where the probability of detecting a human is high.
On the other hand, certain human objects that were detected in previous frames may not appear in the current foreground information. For example, if a person stopped moving for a period of time, the image of the person may be relegated to the background. The person will then not be represented by any foreground blob in the current frame. One way of obviating this problem was noted above: simply apply the entire image, piece-by-piece, to detection process 110 rather than applying only things that appear in the foreground. But, again, that approach requires a great deal of additional processing.
The system addresses this issue by supplying detection process 110 with the top hypothesis 130, as shown in
The object detection results 112 are refined by optical flow projection 114. The optical flow computations involve brightness patterns in the image that move as the detected objects that are being tracked move. Optical flow is the apparent motion of the brightness pattern. Optical flow projection 114 increases the value of the detection probability (neural network score) associated with an object if, through image analysis, the detected object can, with a high degree of probability, be identified to be the same as an object detected in one or more previous frames. That is, an object detected in a given frame that appears to be a human is all the more likely to actually be a human if that object seems to be the displaced version of a human object previously detected. In this way, locations with higher human detection probabilities are reinforced over time. Further details about optical flow projection can be found, for example, in B.T.P. Horn, Robot Vision, M.I.T. Press 1986.
The output of optical flow projection 114 comprises data 118 about the detected objects, referred to as the “object detection data.” This data includes not only the location of each object, but its detection probability, information about its appearance and other useful information used in the course of the image processing as described below.
The data developed up to any particular point in time, e.g., a point in time associated with a particular video frame, will typically be consistent with multiple different scenarios as to a) how many objects of the type being tracked, e.g., people, are in the area under surveillance at that point in time and b) the trajectories that those objects have followed up to that point in time. Hypothesis generation 120 processes the object detection data over time and develops a list of hypotheses for each of successive points in time, e.g., for each video frame. Each hypothesis represents a particular unique interpretation of the object detection data that has been generated over a period of time. Thus each such hypothesis comprises a particular number, and the locations, of objects of the type being tracked that, for purposes of that hypothesis, are assumed to be then located in the area under surveillance, and b) a particular assumed set of trajectories, or tracks, of that detected objects have followed.
As indicated at 124, each hypothesis is given a score, referred to herein as a likelihood, that indicates the likelihood that that particular hypothesis is, indeed, the correct one. That is, the value of each hypothesis's likelihood is a quantitative assessment of how likely it is that a) the objects and object locations specified in that hypothesis are the objects locations of the objects that are actually in the area under surveillance and b) the trajectories specified in that hypothesis are the actual trajectories of the hypothesis's objects.
Hypothesis management 126 then carries out such tasks as rank ordering the hypotheses in accordance with their likelihood values, as well as other tasks described below. The result is an ordered hypothesis list, as indicated at 128. The top hypothesis 130 is the hypothesis whose likelihood value is the greatest. As noted above, the top hypothesis is then used as the input for alert reasoning 132.
The process then repeats when a subsequent frame is processed. Hypothesis generation 120 uses the new object detection data 118 to extend each hypothesis of the previously generated ordered hypothesis list 128. Since that hypothesis list is the most recent one available at this time, it is referred to herein as the “current hypothesis list.” That is, the trajectories in each hypothesis of the current hypothesis list are extended to various ones of the newly detected objects. As previously noted, the object detection data developed for any given frame can almost always support more than one way to correlate the trajectories of a given hypothesis with the newly detected objects. Thus a number of new hypotheses may be generated, or “spawned,” from each hypothesis in the current hypothesis list.
It might be thought that what one should do after the hypotheses have been rank-ordered is to just retain the hypothesis that seems most likely—the one with the highest likelihood value—and forget about the rest. However, further image detection data developed in subsequent frames might make it clear that the hypothesis that seemed most likely—the present “top hypothesis”—was in error in one or more particulars and that some other hypothesis was the correct one.
More particularly, there are many uncertainties in carrying out the task of tracking multiple objects in a area under surveillance if single frames are considered in isolation. These uncertainties are created by such phenomena as false detections, missing data, occlusions, irregular object motions and changing appearances. For example, a person being tracked may “disappear” for a period of time. Such disappearance may result from the fact that the person was occluded by another person, or because the person being tracked bent over to tie her shoelaces and thus was not detected as a human form for some number of frames. In addition, the object detection processing may generate a false detection, e.g., reporting that a human form was detected a particular location when, in fact, there was no person there. Or, the trajectories of individuals may cross one another, creating uncertainty as to which person is following which trajectory after the point of intersection. Or people who were separated may come close together and proceed to walk close to one another, resulting in the detection of only a single person when in fact there are two.
However, by maintaining multiple hypotheses of object trajectories, temporally global and integrated tracking and detection are achieved. That is, ambiguities and uncertainties can be generally resolved when multiple frames are taken into account. Such events are advantageously handled by postponing decisions as to object trajectories—through the mechanism of maintaining multiple hypotheses associated with each frame—until sufficient information is accumulated over time.
An example involving the hypothesis shown in
In particular, as previously noted,
An individual one of connections 304 is an indication that, according to the particular hypothesis in question, the two linked nodes 302 correspond to a same object appearing and being detected in two temporally successive frames. The manner in which is this determined is described at a more opportune point in this description.
To see how the hypothesis represented in
The reason that the objects detected in a given frame are given different letter designations from those in other frames is that it is not known to a certainty which objects detected in a given frame are the same as which objects detected in previous frames. Indeed, it is the task of the multiple-hypothesis processing disclosed herein to ultimately figure this out.
Some number of objects 302 were thereafter detected in frame i+1. It may have been, for example, four objects. However, let it be assumed that the object detection data for frame i+1 is such that a reasonable scenario is that one of those four detections was a false detection. That is, although optical flow projection 114 might have provided data relating to four detected objects, one of those may have been questionable, e.g., the value of its associated detection probability was close to the borderline between person and non-person. Rather than make a final decision on this point, the multiple-hypothesis processing entertains the possibility that either the three-object or the four-object scenario might be the correct one. Hypothesis processing associated with frames following frame i+1 can resolve this ambiguity.
It is the three-object scenario that is depicted in
As we will see shortly, the scenario depicted in
Proceeding to frame i+2, the object detection data from optical flow projection 114 has provided as one likely scenario the presence of five objects H through L. In this hypothesis, objects H and J both emerged from object E that was detected in frame i+1. This implies that both objects A and E represent two people walking closely together, but were not distinguishable as being two people until frame i+2. Objects K and L are hypothesized as being the same as objects F and G. Object I is hypothesized as being a newly appearing object that hadn't followed any of the previously identified trajectories, this being referred to as a trajectory initialization.
Four objects M through P were detected in frame i+3. The hypothesis of
In frame i+4, four objects Q through T are detected. The object detection data associated with these objects supports a set of possible outcomes for the various trajectories that have been being tracked to this point and the hypothesis. The scenario of
All of the foregoing, it should be understood, is only one of numerous interpretations of what actually occurred in the area under surveillance over the frames in question. At each frame, any number of hypothesis can be spawned from each hypothesis being maintained for that frame. In particular, the data that supported the scenario shown in
In frame i+2 some number of objects are again detected. Even if only two objects are detected, the data may support multiple scenarios associating the newly detected objects with those detected in frame i+2. It is possible that neither of the two people detected in frame i+2 is the one detected in frame i. That is, the person detected in frame i may have left the area under surveillance and yet a third person has appeared. Moreover, each of the people detected in frame i+2 might be either of the people that were detected in frame i+1. Thus each of the hypotheses AA and AB can, in turn, give rise to multiple hypotheses. In this example, hypothesis AA gives rise to three hypotheses AAA AAB, and AAC and hypothesis AB gives rise to four hypotheses ABA, ABB, ABC and ABD. Each of those seven hypotheses has its own associated likelihood. Rank ordering them in accordance with their respective likelihoods illustratively has resulted in hypothesis AAA being the top hypothesis, followed by ABA, ABB, AAB, AAC, ABC and ABD.
The process proceeds similarly through successive frames. Note how in frame i+3, the top hypothesis ABAA did not originate from the hypotheses that was the top hypothesis in frames i+1 and i+2. Rather, it has eventuated that frame i+3's top hypothesis evolved from the second-most-likely hypotheses for frame i+1, AB, and the second-most-likely hypotheses from frame i+2, ABA. In this way, each of the multiple hypotheses is either reinforced, eliminated or otherwise maintained as frames are sequentially analyzed over time.
Inasmuch as the data developed in each frame can support multiple extensions of each of the hypotheses developed in the previous frame, the total number of hypotheses that could be generated could theoretically grow without limit. Thus another function of hypothesis management 126 is to prune the hypothesis list so that the list contains only a tractable number of hypotheses on an ongoing basis. For example, hypothesis management 126 may retain only the M hypotheses generated by hypothesis generation 120 that have the highest likelihood values. Or hypothesis management 126 may retain only those hypotheses whose likelihood exceeds a certain threshold.
In the example of
Hypothesis Generation, Likelihood Generation and Hypothesis Management
With the foregoing as an overview, we are now in a position to see how the hypotheses are generated from one frame to the next, how the likelihoods of each hypothesis are computed, and how the hypotheses are managed.
Given a particular trajectory within a given hypothesis, one must consider the possibility that that trajectory connects to any one or more of the objects detected in the present frame, the latter case being a so-called split as seen in
Moreover, given a particular object detected in the current frame, one must consider the possibility that that object connects to any one or more of the trajectories of a given hypothesis, the latter case being a so-called merge as seen in
The various “connection possibilities” just mentioned can occur in all kinds of combinations, any one of which is theoretically possible. Each combination of connection possibilities in the current frame associated with a given hypothesis from the previous frame potentially gives rise to a different hypothesis for the current frame. Thus unless something is done, the number of hypotheses expands multiplicatively from one frame to the next. It was noted earlier in this regard that hypothesis management 126 keeps the number of hypotheses in the hypothesis list down to a manageable number by pruning away the hypotheses generated for a given frame with relatively low likelihood values. However, that step occurs only after a new set of hypotheses has been generated from the current set and the likelihoods for each new hypothesis has been computed. The amount of processing required to do all of this can be prohibitive if one generates all theoretically possible new hypotheses for each current hypothesis.
However, many of the theoretically possible hypothesis are, in fact, quite unlikely to be the correct one. The present invention prevents those hypotheses from even being generated by rejecting unlikely connection possibilities at the outset, thereby greatly reducing the number of combinations to be considered and thus greatly reducing the number of hypotheses generated. Only the possibilities that remain are used to form new hypotheses. The process of “weeding out” unlikely connection possibilities is referred to herein as “local pruning.”
As processing begins for frame (i−1), shown in the first row of
The processing is based on a parameter referred to as a connection probability ConV computed for each detected object/trajectory pair. The connection probability, more particularly, is a value indicative of the probability that the detected object is the same as the object that terminates a particular trajectory. Stated another way, the connection probability is indicative of the likelihood that the detected object is on the trajectory in question. The manner in which ConV can be computed is described below.
As the processing proceeds, it is determined, for each connection probability ConV, whether it exceeds a so-called “strong” threshold Vs, is less than a so-called “weak” threshold Vw or is somewhere in between. A strong connection probability ConV, i.e., ConV>Vs, means that it is very probable that the object in question is on the trajectory in question. In that case we do not allow for the possibility that the detected object initiates a new trajectory. Nor do we allow for the possibility that the detected object was a false detection. Rather we take it as a given that that object and that trajectory are connected. If the connection probability is of medium strength—Vw<ConV<Vs—we still allow for the possibility that the object in question is on the trajectory in question, but we also allow for the possibility that the detected object initiates new trajectory as well as the possibility that there was a false detection. A weak ConV, i.e., ConV<Vw means that it is very improbable that the object in question is on the trajectory in question. In that case we take it as a given that they are not connected and only allow for the possibility that the detected object initiates new trajectory as well as the possibility that there was a false detection.
In the present case, we assume a strong connection between the terminating object of trajectory 71 and object 72. That is, ConV>Vs. As just indicated, this means that the probability of object 72 being the object at the end of trajectory 71 is so high that we do not regard it as being at all likely that object 72 is a newly appearing object. Therefore, potential hypothesis A is retained and potential hypothesis B is rejected. As also just noted, the processing does not allow initializations for strong connections or false detections. Therefore potential hypothesis C is rejected as well. The process of rejecting potential hypotheses B and C is what is referred to hereinabove as “local pruning.” The ordered hypothesis list thus includes only hypothesis A.
As processing begins for frame i, shown in the second row of
Objects 74 and 75 have respective connection probabilities ConV1 and ConV2 with the terminating object of trajectory 73. Different combinations of these two values will generate different local pruning results. We assume ConV1 is very strong (ConV1>Vs). As a result, any potential hypotheses in which object 74 is not present or in which object 74 starts its own trajectory do not survive local pruning, these being hypotheses AB, AC, AE, AF, AH and AI. Thus at best only hypotheses AA, AD and AG survive local pruning. Assume, however, that ConV2 is neither very strong nor very weak. That is Vw<ConV2<Vs. In this case we will entertain the possibility that object 75 is connected to trajectory 73 but we do not rule out the possibility that it starts its own hypothesis or that was a false detection. Thus of the hypotheses AA, AD and AG remaining after considerations relating to object 74, none of those potential hypotheses are rejected after considering object 75. If ConV2 had been greater than Vs; only hypothesis AD would have survived local pruning.
It is assumed that hypotheses AD and AG had the two highest likelihood values. Thus they are the two hypotheses to be retained in the hypothesis list for frame i.
As processing begins for frame i+1, shown in the third row of
Considering first hypothesis AD, which comprises trajectories 76 and 77, it will be seen that object 80 can potentially connect to the terminating object of trajectory 76 (potential hypothesis ADA), to the terminating object of trajectory 77 (ADB), to the terminating object of both trajectories (ADC) or to neither (ADD). In addition, object 80 could potentially be a false detection (ADE). So there are a total of five hypotheses that potentially could derive from hypothesis AD.
Hypothesis AG also comprises two trajectories. One of these is the same upper trajectory 76 as is in hypothesis AD. The other is a new trajectory 79 whose starting node is object 75. Thus in a similar way a total of five hypotheses can potentially derive from hypothesis AG—AGA, AGB, ABC, AGD and AGE.
Note that the objects that terminate the two trajectories of potential hypothesis AD are the same objects that terminate the two trajectories of potential hypothesis AG. These are, in fact, objects 74 and 75. Let ConV1 represent the connection probability between the terminating object of trajectory 76 and detected object 80. Let ConV2 indicate the connection probability between object 80 and the terminating objects of trajectories 77 and 79 (both of which are object 75). First, assume ConV1 is neither too strong (>Vs) nor too weak (<Vw). Therefore, ADA, AGA, ADD, AGD, ADE, AGE survive local pruning. Next, assume ConV2<Vw. In this case ADB, ADC, AGB, and AGC do not survive local pruning.
Note that a difference between hypotheses AD and AG, which are the survivors at the end of frame i, is based on whether object 75 is connected to the prior trajectory or not. Therefore, in frame i+1, it may be that if the 1st, 4th and 5th potential hypotheses derived from AD are the ones that survive local pruning (that is ADA, ADD and ADE survive), then the 1st, 4th and 5th hypotheses derived from AG would also survive (that is AGA, AGD and AGE). This is because local pruning is only concerned with the connection probability between two objects. The question of whether object 75 is or is not connected to the prior trajectory is not taken into account.
The various factors that go into computing the likelihoods for the various hypotheses are such that even if ADA has the highest likelihood, this does not necessary mean that AGA has the next highest likelihood. In this example, in fact, AGD has the highest likelihood value and so it survives while AGA does not.
Returning now to
It is assumed in
Each hypothesis illustratively comprises N trajectories, or tracks, where the value of N is not necessarily the same for each hypothesis. The various trajectories of the jth hypothesis are represented by an index i, i=0, 1, 2 . . . . (N−1). Index i is initially set to 0 at 503. At this time i<N. Thus the process proceeds through 504 to 506. At this point we regard it as possible that the object following the ith track will not be detected in the current frame. We thus set a parameter referred to as ith-track-missing-detection to “yes.”
There are illustratively K objects detected in the current frame. Those various objects are represented by an index k, where k=0, 1, 2, . . . (K−1). In a parallel processing path to that described so far, index k is initially set to 0 at 513. Since k<K at this time, the process proceeds through 516 to 509. At this point we regard it as possible that that the kth object may not be connected to any of the trajectories of the jth hypothesis and we also regard it as possible that the kth object may be a false detection. We thus set the two parameters kth-object-new-track and kth-object-false-detection to the value “yes.”
The ith track and the kth object are considered jointly at 511. More particularly, their connection probability ConV is computed. As will be appreciated from the discussion above, there are three possibilities to be considered: ConV>Vs, Vw<ConV<Vs, and ConV<Vw.
If ConV>Vs, that is the connection probability is strong, processing proceeds from decision box 521 to box 528. It is no longer possible—at least for the hypothesis under consideration—that the ith track will have a missed detection because we take it as a fact that the kth object connects to the ith trajectory when their connection probability is very strong. In addition the strong connection means that we regard it as no longer possible that the kth object starts a new track or that the kth object was a false detection. Thus the parameters as ith-track-missing-detection, kth-object-new-track and kth-object-false-detection are all set to “no.” We also record at 531 the fact that a connection between the kth object and the ith track is possible.
If ConV is not greater than Vs, we do not negate the possibility that the ith track will have a missed detection, or that the kth object will start a new track or that the kth object was a false detection. Thus processing does not proceed to 528 as before but, rather to 523, where it is determined if ConV<Vw. If it is not the case that ConV<Vw; there is still a reasonable possibility that the kth object connects to the ith trajectory and this fact is again taken not of at 531.
If ConV<Vw, there is not a reasonable possibility that the kth object connects to the ith trajectory. Thus box 531 is skipped.
The process thereupon proceeds to 514, where the index i is incremented. Assuming that i<N once again, processing proceeds through 504 to 506 where the parameter as ith-track-missing-detection is set to “yes” for this newly considered trajectory. The connection probability between this next track and the same kth object is computed at 511 and the process repeats for this new trajectory/object pair. Note that if the kth object has a strong connection with any of the trajectories of this hypothesis, box 528 will be visited at least once, thereby negating the possibility of the kth object initiating a new track or being regarded as a false detection—at least for the jth hypothesis.
Once the process has had an opportunity to consider the kth object in conjunction with all of the tracks of the jth hypothesis, the value of k is incremented at 515. Assuming that k<K, the above-described steps are carried out for the new object.
After all of the K objects have been considered in conjunction with all of the trajectories of the jth hypothesis, the process proceeds to 520 where new hypotheses based on the jth hypothesis are spawned. The value of j is incremented at 517 and the process repeats for the next hypothesis until all the hypotheses have been processed.
a) the object/trajectory pairs identified at step 531;
b) unextended trajectories, i.e., trajectories for which the parameter ith-track-missing-detection retains the value “yes” that was assigned at 506;
c) unconnected objects, i.e., objects for which the parameter kth-object-new-track retains the value “yes” that was assigned at 509; and
d) missing objects, i.e., objects for which the parameter kth-object-false-detection retains the value “yes” that was assigned at 509.
It was previously indicated that hypothesis management 126 rank orders the hypotheses according to the their likelihood values and discards all but the top ones. It also deletes the tracks of hypotheses which are out-of-date, meaning trajectories whose objects have seemingly disappeared and have not returned after a period of time. It also keeps trajectory lengths to no more than some maximum by deleting the oldest node from a trajectory when its length becomes greater than that maximum. Hypothesis management 126 also keeps a list of active nodes, meaning the ending nodes, or objects, of the trajectories of all retained hypotheses. The number of active nodes is the key number of determining the scale of graph extension, therefore, a careful managing step assures efficient computation.
In summary, the design of this multiple object tracking system follows two principles. First, preferably as many hypotheses as possible are kept and they are made to be as diversified as possible to catch all the possible explanations of image sequences. The decision is preferably made very late to guarantee it is an informed and global decision. Second, local pruning eliminates unlikely connections and only a limited number of hypotheses are kept. This principle helps the system achieve a real-time computation.
Image Processing Details
Given object detection results from each image, the hypotheses generation 120 calculates the connection probabilities between the nodes at the end of the trajectories of each of the current hypotheses (“maintained nodes”) and the new nodes detected in the current frame. Note that the trajectory-ending nodes are not necessarily from the previous frame since there may have missing detections. The connection probability, denoted hereinabove as ConV is denoted in this section as pcon and is computed according to,
Here wappear, wpos and wsize are weights in the connection probability computation. That is, the connection probability is a weighted combination of appearance similarity probability, position closeness probability and size or scale similarity probability. DistrDist is a function to compute distances between two histogram distributions. It provides a distance measure between the appearances of two nodes. The parameters x1, y1 and x2, y2 denote the detected object locations corresponding to the maintained node and the detected node in the current image frame, respectively. The parameters sizex2, sizey2 are the sizes of the bounding boxes that surround the various detected objects, in x and y directions corresponding to the detected node in the current frame. Bounding boxes are described below. The parameters flowx, flowy represent the backward optical flows of the current detected node in x and y directions, and pflow is the probability of the optical flow which is a confidence measure of the optical flow computed from the covariance matrix of the current detected node. Therefore, ppos measures the distance between the maintained node (x1, y1) and the back projected location of the current detected node (x2, y2) according to its optical flow (flowx, flowy) which is weighted by its uncertainty (pflow). These distances are relative distances between the differences in x and y directions and the bounding box size of the current detected node. The metric tolerates larger distance errors for larger boxes. diffx, diffy are the differences in the bounding box size of x and y directions, respectively. The parameter psize measures the size differences between the bounding boxes and penalizes the inconsistence in size changes of x and y directions. The parameters a and b are some constants. This connection probability measures the similarity between two nodes in terms of appearance, location and size. We prune the connections whose probabilities are very low for the sake of computation efficiency.
The likelihood or probability of each hypothesis generated in the first step is computed according to the connection probability of its last extension, the object detection probability of its terminating node, trajectories analysis and an image likelihood computation. In particular, the hypothesis likelihood is accumulated over image sequences,
where i is the current image frame number, n represents the number of objects in current hypothesis. The parameter pconj denotes the connection probability computed in the first step. If the jth trajectory has a missing detection in current frame, a small probability, is assigned to pconj. The parameter pobjj is the object detection probability and ptrjj measures the smoothness of the jth trajectory. We use the average of multiple trajectories likelihood in the computation. The metric prefers the hypotheses with better human detections, stronger similarity measurements and smoother tracks. The parameter limg is the image likelihood of the hypothesis. It is composed of two items,
Here lcov calculates the hypothesis coverage of the foreground pixels and lcomp measures the hypothesis compactness. A denotes the sum of foreground pixels and Bj represents the pixels covered by jth node. The parameter m is the number of different nodes in this hypothesis. ∩ denotes the set intersection and ∪ denotes the set union. The numerators in both lcov and lcomp represent the foreground pixels covered by the combination of multiple trajectories in the current hypothesis. The parameter c is a constant. These two values give a spatially global explanation of the image (foreground) information. They measure the combination effects of multiple tracks in a hypothesis instead of individual local tracking for each object.
More particularly, the hypothesis coverage is a measure of the extent to which regions of an image of the area under surveillance that appear to represent moving objects are covered by regions of the image corresponding to the terminating objects of the trajectories in the associated hypothesis. Those regions of the image have been identified, based on their appearance, as being objects belonging to a particular class of objects, such as people, and, in addition, have been connected to the trajectories in the associated hypothesis. The higher hypothesis coverage, the better, i.e., the more likely it is that the hypothesis in question represents the actual trajectories of the actual objects in the area under surveillance. Basically the hypothesis coverage measures how much of the moving regions is covered by the bounding boxes, generated by the object detector, corresponding to the end points of all the trajectories in the associated hypothesis. The hypothesis compactness is a measure of the overlapping areas between regions of the image corresponding to the terminating objects of the trajectories in the associated hypothesis. The less overlapping area, the higher the compactness. The compactness measures how compact or efficient the associated hypothesis is to cover the moving regions. The higher the compactness, the more efficient, and so the better, is the hypothesis.
The hypothesis likelihood is a value refined over time. It makes a global description of individual object detection results. Generally speaking, the hypotheses with higher likelihood are composed of better object detections with good image explanation. It tolerates missing data and false detections since it has a global view of image sequences.
There is no computed value of pconj for a trajectory that is newly beginning in the current frame or for a trajectory that is not extended to a newly detected object in the current frame. It is nonetheless desirable to assign a value of pconj for Eq. (3) even in such cases. The probability that those scenarios are correct, i.e., that a trajectory did, in fact, begin or end in the current frame, is higher at the edges of the surveillance field and the door area than in the center because people typically do not appear or disappear “out of nowhere,” i.e., in the middle of the surveillance field. Thus an arbitrary, predefined value for pconj can be assigned in these situations. Illustratively, we can assign the value pconj=1 for detections or terminated trajectories at the very edge of the surveillance field (including the door zone)m/, and assign increasingly lower values as one gets closer to the center of the surveillance field, e.g., in steps of 0.1 down to the value of 0.1 at the very center.
Some further details about background subtraction 106 and detection process 110 will now be presented.
The object detection itself involves computations of the probabilities of detecting a human object based upon the image pixel values. There are many alternatives to the image pixel values corresponding to head and upper body that may be employed. For example, the unique way that an object may be walking or the juxtaposition of a walking human object's legs and/or arms within image frames may distinguish it from other objects, and generally any feature of one or more parts of the human body that is detectable and distinctly identifiable may be employed. In addition, characteristics of what a human object may be wearing or otherwise that may be associated, e.g., by carrying, pushing, etc., with the moving human object may be used. Particular features of the human face may be used if resolvable. However, in many applications such as multiple object detection and tracking in a area under surveillance of, e.g., over ten meters in each direction, the single fixed camera and imaging technology being used may generally not permit sufficient resolution of facial features, and in some cases, too many human objects in the detected frames will be looking in a direction other than toward the surveillance camera.
All foreground pixels are checked by the object detection module 110. In some frames, there may be no identified objects in the area under surveillance. In frames of interest, one or more pixels will be identified having a probability greater than a predetermined value corresponding to the location of a predetermined portion of a detected object. A detected object will generally occupy a substantial portion of a frame.
An original full image may have multiple scales that are re-sized to different scales. The algorithm includes multiple interlaced convolution layers and subsampling layers. Each “node” in a convolution layer may have 5×5 convolutions. The convolution layers have different number of sub-layers. Nodes within each sub-layer have same configuration, that is, all nodes have same convolution weights. The output is a probability map representing the probabilities of human heads and/or upper torso being located at a corresponding location at some scale. Those probabilities either above a threshold amount or those certain number of highest probabilities are selected as object detections.
Bounding boxes are preferably drawn over the foreground blobs identified as human object detections. These bounding boxes are basically rectangles that are drawn around a selected position of an object. Bounding boxes are generally used to specify location and size of the enclosed object, and they preferably move with the object in the video frames.
Background modeling is illustratively used to identify the image background. This procedure preferably involves an adaptive background modeling module which deals with changing illuminations and does not require objects to be constantly moving or still. Such adaptive background module may be updated for each frame, over a certain number of frames, or based on some other criteria such as a threshold change in a background detection parameter. Preferably, the updating of the background model depends on a learning rate ρ, e.g.:
where μt, σt are the mean and variation of the Gaussian, and Xt the pixel value at frame t, respectively. Items that are well modeled are deemed to be background to be subtracted. Those that are not well modeled are deemed foreground objects and are not subtracted. If an object remains as a foreground object for a substantial period of time, it may eventually be deemed to be part of the background. It is also preferred to analyze entire area under surveillances at a same time by looking at all of the digitized pixels captured simultaneously.
There are two walking human objects 902 and 904 in the image captured and illustrated at
The spots shown in
The system has been tested at an actual facility. On six test videos taken at the facility, the system achieves 95.5% precision in events classification. The violation detection rate is 97.1% and precision is 89.2%. The ratio between violations and normal events is high because facility officers were asked to make intentional violations. Table 1 lists some detailed results. The system achieved overall 99.5% precision computed over one week's data. The violation recall and precision are 80.0% and 70.6%, respectively. Details are shown in Table 1 below.
An advantageous multiple object tracking algorithm and surveillance system and methods based on which an alert reasoning module is used to detect anomalies have been described. The tracking system is preferably built on a graphical representation to facilitate multiple hypotheses maintenance. Therefore, the tracking system is very robust to local object detection results. The pruning strategy based on image information makes the system computation efficient.
The alert reasoning module takes advantage of the tracking results. Predefined rules may be used to detect violations such as piggy-backing and tailgating at access points. Human reviewers and/or machine learning technologies may be used to achieve manual and/or autonomous anomaly detection.
While an exemplary drawings and specific embodiments of the present invention have been described and illustrated, it is to be understood that that the scope of the present invention is not to be limited to the particular embodiments discussed. Thus, the embodiments shall be regarded as illustrative rather than restrictive, and it should be understood that variations may be made in those embodiments by workers skilled in the arts without departing from the scope of the present invention as set forth in the claims that follow and their structural and functional equivalents. As but one of many variations, it should be understood that systems having multiple “stereo” cameras or moving cameras may benefit from including features of the detection and tracking algorithm of the present invention.
In addition, in methods that may be performed according to the claims below and/or preferred embodiments herein, the operations have been described in selected typographical sequences. However, the sequences have been selected and so ordered for typographical convenience and are not intended to imply any particular order for performing the operations, unless a particular ordering is expressly provided or understood by those skilled in the art as being necessary.
Co-Pending Patent Applications
The following list of United States patent applications, which includes the application that matured into this patent, were all filed on the same day and share a common disclosure:
I. “Video surveillance system with rule-based reasoning and multiple-hypothesis scoring,” Ser. No. 10/917,985;
II. “Video surveillance system that detects predefined behaviors based on movement through zone patterns,” Ser. No. 10/916,870;
III. “Video surveillance system in which trajectory hypothesis spawning allows for trajectory splitting and/or merging,” Ser. No. 10/917,201;
IV. “Video surveillance system with trajectory hypothesis spawning and local pruning,” Ser. No. 10/917,009;
V. “Video surveillance system with trajectory hypothesis scoring based on at least one non-spatial parameter,” Ser. No. 10/916,966;
VI. “Video surveillance system with connection probability computation that is a function of object size,” Ser. No. 10/917,063; and
VII “Video surveillance system with object detection and probability scoring based on object class,” Ser. No. 10/917,225.
1. A method for use in a video surveillance system in which is generated at least a first set of trajectories of a first set of objects of a particular object class hypothesized to have been moving through an area under surveillance at a previous point in time, the method comprising
- identifying objects of said particular class hypothesized to be in said area under surveillance at a current point in time, said particular class of objects being distinguishable from other objects based on the physical appearance of the objects of said particular class, at least one of said objects in said area under surveillance at said current point in time being identified independent of the physical appearance of any objects hypothesized to have been in said area under surveillance at said previous point in time, said identifying including analyzing individual portions of a video image of said area under surveillance to determine if said portions have features that are characteristic of objects in said particular class,
- extending at least ones of said first set of trajectories to at least ones of said identified objects to develop at least one set of extended trajectories, each of at least ones of said extended trajectories being a respective one of said first set of trajectories extended to at least one of the identified objects, and
- selecting, as an individual one of said portions, a portion of said video image that is selected independent of whether that portion is in the foreground of said video image.
2. The method of claim 1 wherein said foreground of said video image comprises portions of said image at said current point in time whose content is determined to have changed from the content of the spatially corresponding portion of said video image at a previous point in time.
3. The method of claim 1 wherein said individual one of said portions is selected based on its proximity to a terminating point of at least one of the trajectories of said first set of trajectories.
4. The method of claim 1 wherein said analyzing includes applying said individual portions of said video image to a neural network that has been trained to recognize objects in said particular object class.
5. The method of claim 4 wherein said neural network generates a score in response to each said applied portion of said video image and wherein said each applied portion is identified as being an object in said particular object class if said score is at least as large as a predetermined threshold.
6. The method of claim 1 further comprising selecting, as another individual one of said portions, a portion of the foreground of said video image at said current point in time, said selecting of another individual one of said portions being carried out independent of that portion's proximity to a terminating point of any of said at least first set of trajectories.
7. The method of claim 6 wherein said foreground of said video image comprises portions of said image at said current point in time whose content is determined to have changed from the content of the spatially corresponding portion of said video image at a previous point in time.
8. An electronic surveillance system adapted to carry out the method defined by claim 1.
9. A computer-readable medium on which are stored instructions that are executable by a processor to carry out the method defined by claim 1.
U.S. Patent Documents
|4839631||June 13, 1989||Tsuji|
|4962473||October 9, 1990||Crain|
|5243418||September 7, 1993||Kuno et al.|
|5323470||June 21, 1994||Kara et al.|
|5448290||September 5, 1995||VanZeeland|
|5497314||March 5, 1996||Novak|
|5612928||March 18, 1997||Haley et al.|
|5666157||September 9, 1997||Aviv|
|5828769||October 27, 1998||Burns|
|5923365||July 13, 1999||Tamir et al.|
|5969755||October 19, 1999||Courtney|
|6028626||February 22, 2000||Aviv|
|6069655||May 30, 2000||Seeley et al.|
|6069696||May 30, 2000||McQueen et al.|
|6097429||August 1, 2000||Seeley et al.|
|6107918||August 22, 2000||Klein et al.|
|6128396||October 3, 2000||Hasegawa et al.|
|6154131||November 28, 2000||Jones et al.|
|6295367||September 25, 2001||Crabtree et al.|
|6301370||October 9, 2001||Steffens et al.|
|6324532||November 27, 2001||Spence et al.|
|6628835||September 30, 2003||Brill et al.|
|6654047||November 25, 2003||Iizaka|
|6665004||December 16, 2003||Paff|
|6696945||February 24, 2004||Venetlaner et al.|
|6697103||February 24, 2004||Fernandez et al.|
|6707486||March 16, 2004||Millet et al.|
|6757008||June 29, 2004||Smith|
|6876999||April 5, 2005||Hill et al.|
|20020005955||January 17, 2002||Kramer et al.|
|20020099770||July 25, 2002||Lindo|
|20020198854||December 26, 2002||Berenji et al.|
- D.J. Beymer and K. Konolige. Real-time tracking of multiple people using stereo. Frame-Rate99, 1999.
- D. Comaniciu, V. Ramesh, and P. Meer. Real-time tracking of non-rigid objects using mean shift, IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR00), pp. II: 142-149, 2000.
- S.L. Dockstader and A.M. Tekalp. On the tracking of articulated and occluded video object motion, Real Time Imaging, 7(5):415-432, Oct. 2001.
- A.M. Elgammal and L.S. Davis. Probabilistic framework for segmenting people under occlusion, International Conference on Computer Vision (ICCV01), pp. II: 145-152, 2001.
- I. Haritaoglu, D. Harwood, and L.S. Davis. Hydra: Multiple people detection and tracking using silhouettes, Workshop on Visual Surveillance (VS99), 1999.
- Y. Kirubarajan, Y. Bar-Shalom, and K. R. Pattipati. Multiassignment for track- ing a large number of overlapping objects, IEEE Transactions on Aerospace and Electronic Systems, 37(1): 2-21, Jan. 2001.
- D.B. Reid. An algorithm for tracking multiple targets, IEEE Transactions on Automatic Control, 24(6):843-854, Dec. 1979.
- C. Stauffer and W.E.L. Grimson. Learning patterns of activity using real-time tracking, IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 22(8):747-757, Aug. 2000.
- H. Tao, H.S. Sawhney, and R. Kumar. A sampling algorithm for tracking multiple objects, Vision Algorithms 99, 1999.
- C.R. Wren, A. Azarbayejani, T.J. Darrell, and A.P. Pentland. PFinder: Real-time tracking of the human body, IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 19(7):780-785, Jul. 1997.
- Y. Wu and T.S. Huang. A co-inference approach to robust visual tracking, International Conference on Computer Vision (ICCV01), pp. II: 26-33, 2001.
- T. Zhao and R. Nevatia. Stochastic human segmentation from a static camera, Motion02, pp. 9-14, 2002.
- T. Zhao, R. Nevatia, and F. LV. Segmentation and tracking of multiple humans in complex situations, IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR01), pp. II:194-201, 2001.
Filed: Aug 12, 2004
Date of Patent: Oct 24, 2006
Patent Publication Number: 20050105765
Assignee: Vidient Systems, Inc. (Sunnyvale, CA)
Inventors: Mei Han (Cupertino, CA), Yihong Gong (Cupertino, CA), Hai Tao (Santa Cruz, CA)
Primary Examiner: Bhavesh M. Mehta
Assistant Examiner: Patrick Edwards
Attorney: Ronald D. Slusky
Application Number: 10/917,225
International Classification: G06K 9/00 (20060101);