1. A computer-implemented method comprising: providing an engine in communication with a database configured to store a data type; causing the engine to receive a heterogeneous input data stream comprising an element; causing the engine to reference a mapping schema of a knowledge model created by a domain expert, to produce a mapping of the element with a class of the mapping schema; causing the engine to output a resource model comprising the mapping and a relationship between the element and the data type; causing the engine to apply a first pattern recognition to partition the data stream into a segment including a data interval; causing the engine to apply a second pattern recognition to determine a data value change in the segment; causing the engine to apply an attribute schema of the resource model to the segment to identify an event; causing the engine to apply a segment schema of the resource model to the data stream to generate a pattern-driven annotation stream comprising a triple in a form of (b,t 1 ,t 2 ), where b comprises a behavior and t 1 and t 2 indicate the data interval; and maintaining the event and the behavior in an entity pool.