IP Library Granted Patent US 12670715
Granted Patent B2
US 12670715 · App. 18/396,640 · Granted Jun 30, 2026

Systems and methods for video analysis

Inventors: Chenglu Wu (Hangzhou, CN); Yanxun Yu (Hangzhou, CN); Zhen Zhang (Hangzhou, CN); Yayun Wang (Hangzhou, CN)
Assignee: ZHEJIANG DAHUA TECHNOLOGY CO., LTD.
G06V20/46G06V10/774G06V10/776G06V20/41G06V20/44
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12670715
App. No.
18/396,640
Granted
Jun 30, 2026
Kind
B2
Abstract

The present disclosure relates to systems and methods for video analysis. The systems may obtain a video stream. For each of a plurality of frames in the video stream, the systems may determine a reference score corresponding to the frame based on a spatiotemporal feature of the frame. The spatiotemporal feature of the frame may associate a feature of the frame with a feature of at least one adjacent frame of the frame. The systems may determine, from the plurality of frames in the video stream, one or more target frames based on reference scores corresponding to the plurality of frames.

Claims (75)

1 . A system, comprising:

at least one storage device including a set of instructions; and

at least one processor in communication with the at least one storage device, wherein when executing the set of instructions, the at least one processor is directed to perform operations including:

obtaining a video stream;

for each of a plurality of frames in the video stream, determining a reference score corresponding to each of the plurality of frames based on a spatiotemporal feature of the each of the plurality of frames, wherein the spatiotemporal feature of each of the plurality of frames associates a feature of the frame with a feature of at least one adjacent frame of each of the plurality of frames, and the determining the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames includes:

determining, using a video analysis model, the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames, wherein the video analysis model is a trained machine learning model and includes a video analysis network and a plurality of cache units each of which is connected to the video analysis network and configured to cache a same number of frames as a number of frames that are inputted into the video analysis network in a single processing of the video analysis network, the plurality of cache units perform alternating storage and transmission of frame data, and the video analysis network includes:

a feature extraction layer configured to extract features of the plurality of frames in the video stream;

a feature association layer configured to determine the spatiotemporal feature of each of the plurality of frames by associating the feature of each of the plurality of frames with the feature of the at least one adjacent frame of each of the plurality of frames; and

a prediction layer configured to determine the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames;

determining, from the plurality of frames in the video stream, one or more target frames based on reference scores corresponding to the plurality of frames.

2 . The system of claim 1 , wherein the video analysis network is obtained by a training process including:

obtaining a plurality of sample video streams, wherein each of the plurality of sample video streams involves an abnormal event and includes at least one first frame corresponding to a moment of the abnormal event and a plurality of second frames corresponding to other moments;

for each of the plurality of sample video streams, labeling a plurality of sample frames in each of the plurality of sample video stream, wherein the at least one first frame is labeled with a first score, each of the plurality of second frames is labeled with a second score, and the second score is determined based on a similarity between the at least one first frame and the second frame; and

determining the video analysis network by training a preliminary video analysis network based on the plurality of labeled sample video streams.

3 . The system of claim 2 , wherein the determining the video analysis network by training the preliminary video analysis network based on the plurality of labeled sample video streams includes:

for each of the plurality of labeled sample video streams,

determining, using the preliminary video analysis network, a prediction score corresponding to each sample frame in the labeled sample video stream; and

determining a loss function based on prediction scores and the labeled scores corresponding to the plurality of sample frames in the labeled sample video stream; and

determining the video analysis network by training the preliminary video analysis network based on the plurality of labeled sample video streams and corresponding values of the loss function.

4 . The system of claim 3 , wherein the determining the loss function based on prediction scores and the labeled scores corresponding to the plurality of sample frames in the labeled sample video stream includes:

for each pair of adjacent sample frames in the plurality of sample frames, determining a first difference of prediction scores corresponding to the pair of adjacent sample frames and a second difference of labeled scores corresponding to the pair of adjacent sample frames;

determining a deviation term based on first differences and second differences corresponding to multiple pairs of adjacent sample frames in the plurality of sample frames, wherein the deviation term indicates a relationship between label scores and prediction scores corresponding to different sample frames in the labeled sample video stream, and reflects a accuracy with which the preliminary video analysis network recognizes differences between different frames; and

determining the loss function based on the deviation term and a loss term, wherein the loss term indicates a relationship between a label score and a prediction score corresponding to each of the plurality of sample frame in the labeled sample video stream, and indicates an accuracy of a score prediction determined based on the preliminary video analysis network.

5 . The system of claim 1 , wherein the video analysis network is obtained by a training process including:

constructing the feature extraction layer in the video analysis network by a transfer learning; and

determining the feature association layer and the prediction layer by training a preliminary feature association layer and a preliminary prediction layer based on a plurality of labeled sample video streams.

6 . The system of claim 1 , wherein for each of the plurality of frames in the video stream, the determining the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames includes:

determining an analysis region in the video stream; and

for each of the plurality of frames in the video stream, determining the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of a portion of each of the plurality of frames n the analysis region.

7 . The system of claim 1 , wherein the determining, from the plurality of frames in the video stream, the one or more target frames based on the reference scores corresponding to the plurality of frames includes:

for each of the plurality of frames in the video stream,

determining whether the reference score corresponding to each of the plurality of frames is larger than a first threshold;

in response to determining that the reference score corresponding to each of the plurality of frames is larger than the first threshold, determining a similarity degree between each of the plurality of frames and a previous frame of each of the plurality of frames;

determining whether the similarity degree is less than a second threshold; and

in response to determining that the similarity degree is less than the second threshold, designating each of the plurality of frames as a target frame.

8 . The system of claim 1 , wherein the operations further include:

for each of the one or more target frames, determining, using a detection model, a detection result based on the target frame, wherein the detection result includes at least one of an occurrence region, in the target frame, of an event involved in the target frame or a probability that a type of the event is the same as a type of at least one abnormal event; and

determining an analysis result of the video stream based on detection results corresponding to the one or more target frames.

9 . The system of claim 8 , wherein the determining the analysis result of the video stream based on the detection results corresponding to the one or more target frames includes:

for each of the one or more target frames,

determining whether a center of the occurrence region of the event associated with the target frame is located in an analysis region in the video stream;

in response to determining that the center of the occurrence region of the event associated with the target frame is located in the analysis region in the video stream, determining whether the probability is larger than a probability threshold associated with the at least one abnormal event;

in response to determining that the probability is larger than the probability threshold associated with the at least one abnormal event, determining whether the occurrence region of the event associated with the target frame satisfies a condition; and

in response to determining that the detection result corresponding to the target frame satisfies the condition, determining the analysis result of the video stream based on the detection result corresponding to the target frame.

10 . The system of claim 9 , wherein the condition includes:

an intersection-over-union (IOU) of the occurrence region of the event in the detection result corresponding to the target frame and an occurrence region of the event in a candidate detection result in the detection results corresponding to the one or more target frames is less than a third threshold, wherein the candidate detection result is determined before the detection result and a probability in the candidate detection result is same as the probability in the detection result; or

an interval between the target frame corresponding to the detection result and a target frame corresponding to a previous detection result of the detection result is larger than an interval threshold.

11 . A method for video analysis, comprising:

obtaining a video stream;

for each of a plurality of frames in the video stream, determining a reference score corresponding to each of the plurality of frames based on a spatiotemporal feature of each of the plurality of frames, wherein the spatiotemporal feature of each of the plurality of frames associates a feature of each of the plurality of frames with a feature of at least one adjacent frame of each of the plurality of frames, and the determining the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames includes:

determining, using a video analysis model, the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames, wherein the video analysis model is a trained machine learning model; and

determining the video analysis network by training a preliminary video analysis network based on a plurality of labeled sample video streams, including:

for each of the plurality of labeled sample video streams,

determining, using the preliminary video analysis network, a prediction score corresponding to each sample frame in the labeled sample video stream; and

determining a loss function based on prediction scores and the labeled scores corresponding to a plurality of sample frames in the labeled sample video stream, including:

for each pair of adjacent sample frames in the plurality of sample frames, determining a first difference of prediction scores corresponding to the pair of adjacent sample frames and a second difference of labeled scores corresponding to the pair of adjacent sample frames;

determining a deviation term based on first differences and second differences corresponding to multiple pairs of adjacent sample frames in the plurality of sample frames, wherein the deviation term indicates a relationship between label scores and prediction scores corresponding to different sample frames in the labeled sample video stream, and reflects an accuracy with which the preliminary video analysis network recognizes differences between different frames; and

determining the loss function based on the deviation term and a loss term, wherein the loss term indicates a relationship between a label score and a prediction score corresponding to each of the plurality of sample frame in the labeled sample video stream, and indicates an accuracy of a score prediction determined based on the preliminary video analysis network; and

determining the video analysis network by training the preliminary video analysis network based on the plurality of labeled sample video streams and corresponding values of the loss function;

determining, from the plurality of frames in the video stream, one or more target frames based on reference scores corresponding to the plurality of frames.

12 . The method of claim 11 , wherein the video analysis model includes a video analysis network including:

a feature extraction layer configured to extract features of the plurality of frames in the video stream;

a feature association layer configured to determine the spatiotemporal feature of each of the plurality of frames by associating the feature of each of the plurality of frames with the feature of the at least one adjacent frame of each of the plurality of frames; and

a prediction layer configured to determine the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames.

13 . The method of claim 12 , wherein the plurality of labeled sample video streams are obtained according to operations including:

obtaining a plurality of sample video streams, wherein each of the plurality of sample video streams involves an abnormal event and includes at least one first frame corresponding to a moment of the abnormal event and a plurality of second frames corresponding to other moments; and

for each of the plurality of sample video streams, labeling a plurality of sample frames in each of the plurality of sample video stream, wherein the at least one first frame is labeled with a first score, each of the plurality of second frames is labeled with a second score, and the second score is determined based on a similarity between the at least one first frame and the second frame.

14 . A non-transitory computer readable medium, comprising executable instructions that, when executed by at least one processor, direct the at least one processor to perform a method, the method comprising:

obtaining a video stream;

for each of a plurality of frames in the video stream, determining a reference score corresponding to each of the plurality of frames based on a spatiotemporal feature of each of the plurality of frames, wherein the spatiotemporal feature of each of the plurality of frames associates a feature of each of the plurality of frames with a feature of at least one adjacent frame of each of the plurality of frames, and the determining the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames includes:

determining, using a video analysis model, the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames, wherein the video analysis model is a trained machine learning model and includes a video analysis network and a plurality of cache units each of which is connected to the video analysis network and configured to cache a same number of frames as a number of frames that are inputted into the video analysis network in a single processing of the video analysis network, the plurality of cache units perform alternating storage and transmission of frame data, and the video analysis network includes:

a feature extraction layer configured to extract features of the plurality of frames in the video stream;

a feature association layer configured to determine the spatiotemporal feature of each of the plurality of frames by associating the feature of each of the plurality of frames with the feature of the at least one adjacent frame of each of the plurality of frames; and

a prediction layer configured to determine the reference score corresponding to each of the plurality of frames based on the spatiotemporal feature of each of the plurality of frames;

determining, from the plurality of frames in the video stream, one or more target frames based on reference scores corresponding to the plurality of frames.