1. A method for generating at least one processing specification for a stream of data items captured by at least one sensor, the method comprising: receiving the stream of data items captured from the at least one sensor; processing, via at least one processor, a similarity metric on the stream of data items to identify similar pairs of data item within the stream; generating, via at least one processor, a plurality of proposed window specifications based on the stream of data items and the processed similarity metric, each one of the plurality of proposed window specification defined by a start condition and an end condition and encompassing at least some of the data items within the stream; and generating, via at least one processor, the at least one processing specification based on at least one of the plurality of proposed window specifications.