A
system for identifying a complex event pattern in a
data input for real-time video analysis is disclosed. The
system includes a query
compiler, a proxy model, a first
inference module, and a second
inference module. A method for identifying a complex event pattern in a
data input for real-time video analysis is disclosed. The method includes: translating a query into a
nondeterministic finite automaton (NFA) using a query
compiler; predicting proxy scores using a proxy model; estimating a probability of a window matching a query pattern; filtering out windows with a very low likelihood of matching the query pattern; adaptively materializing events within the windows until it can be determined whether a match is guaranteed or impossible; and returning windows that must contain a matc.