Parabolic behavior identification method, model training method and related device

By obtaining position and time information on the motion trajectory and using a pre-trained model to identify parabolic behavior, it solves the problems of scene limitations and manual intervention in the existing technology, and achieves accurate identification in diverse application environments.

CN112926445BActive Publication Date: 2024-09-13BEIJING AIBI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110206044.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-24
Publication Date
2024-09-13
Estimated Expiration
2041-02-24

AI Technical Summary

Technical Problem

Existing technologies for detecting and identifying parabolic behaviors in public places have scene limitations and are prone to errors or missed identifications, requiring manual intervention.

Method used

By obtaining the position and time information of moving pixels on the target's motion trajectory, we use a pre-trained parabolic behavior recognition model to determine the confidence of the parabolic behavior based on this information, achieve automatic recognition, and are suitable for various application environments through rich training samples. .

Benefits of technology

It achieves accurate identification of parabolic behavior in various scenarios, reduces manual intervention, and improves detection accuracy and applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112926445B
    Figure CN112926445B
Patent Text Reader

Abstract

The embodiments of the present application disclose a parabolic behavior recognition method, a model training method and related devices, wherein the parabolic behavior recognition method includes: obtaining the position information and time information corresponding to each of multiple moving pixel points on the target motion trajectory; the target motion trajectory is determined according to multiple motion areas corresponding to the moving target in the target trajectory image and their respective corresponding time information, the multiple motion areas respectively belong to multiple frame images in the target video, and the time information corresponding to the motion area is determined according to the order of the images to which they belong in the target video; the time information corresponding to the moving pixel point is the time information corresponding to the moving area to which it belongs; through the parabolic behavior recognition model, according to the position information and time information corresponding to each of the multiple moving pixel points, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined; according to the confidence, whether the moving target in the target video corresponds to the parabolic behavior is determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a parabolic behavior recognition method, a model training method and related devices. Background Art

[0002] Abnormal throwing of objects in public places is an extremely dangerous behavior. For example, throwing prohibited items from the airport terminal to the isolation area may disrupt the airport's operating order at the least, or even cause a major safety accident at the worst. Currently, the detection of whether there is such throwing behavior in public places is mainly based on images captured by surveillance cameras deployed in public places.

[0003] The relevant technology mainly realizes the detection and identification of parabolic behavior in the following ways: generating a trajectory image of the moving target based on the image taken by the surveillance camera, and determining the motion trajectory of the moving target in the trajectory image, and then using manually set rules to determine whether the relevant attributes of the motion trajectory meet the attribute standards of the parabolic trajectory, thereby detecting and identifying parabolic behavior.

[0004] The above-mentioned detection and identification method of parabolic behavior requires the help of human prior knowledge, which is usually difficult to cover a variety of application environments. It has certain scenario limitations and is prone to misidentification or omission of parabolic behavior. Summary of the invention

[0005] The embodiments of the present application provide a parabolic behavior recognition method, a model training method and related devices, which can accurately recognize parabolic behaviors in various scenarios.

[0006] In view of this, the first aspect of the present application provides a parabolic behavior identification method, the method comprising:

[0007] Acquire position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the moving pixel point belongs to the motion region, and the time information corresponding to the moving pixel point is the time information corresponding to the motion region to which it belongs;

[0008] Determining the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model;

[0009] According to the confidence level, it is determined whether the moving target in the target video corresponds to a parabolic behavior.

[0010] A second aspect of the present application provides a model training method, the method comprising:

[0011] Acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior;

[0012] Based on the training sample set, training the parabolic behavior recognition model to be trained;

[0013] When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed.

[0014] A third aspect of the present application provides a parabolic behavior identification device, the device comprising:

[0015] An information acquisition module is used to acquire the position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the motion pixel point belongs to the motion region, and the time information corresponding to the motion pixel point is the time information corresponding to the motion region to which it belongs;

[0016] A confidence determination module, used to determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model;

[0017] The behavior recognition module is used to determine whether the moving target in the target video corresponds to a parabolic behavior according to the confidence level.

[0018] A fourth aspect of the present application provides a model training device, the device comprising:

[0019] A training sample acquisition module, used to acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior;

[0020] The training module is used to train the parabolic behavior recognition model to be trained based on the training sample set; when the parabolic behavior recognition model meets the training end condition, determine that the training of the parabolic behavior recognition model is completed.

[0021] A fifth aspect of the present application provides a device, the device comprising: a processor and a memory;

[0022] The memory is used to store computer programs;

[0023] The processor is used to call the computer program to execute the parabolic behavior identification method described in the first aspect or the model training method described in the second aspect.

[0024] In a sixth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the parabolic behavior identification method described in the first aspect or the model training method described in the second aspect.

[0025] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0026] An embodiment of the present application provides a method for identifying parabolic behavior, which includes: obtaining position information and time information corresponding to each of multiple moving pixel points on a target motion trajectory, wherein the target motion trajectory is determined based on multiple motion regions corresponding to the moving target in a target trajectory image and their respective corresponding time information, wherein the multiple motion regions in the target trajectory image respectively belong to multiple frame images in a target video, wherein the time information corresponding to the motion region is determined based on the order of the images to which they belong in the target video, wherein the time information corresponding to the motion region to which the moving pixel point belongs is the time information corresponding to the motion region to which it belongs; then, through a parabolic behavior recognition model, according to the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined; and then, according to the confidence, whether the moving target in the target video corresponds to the parabolic behavior is determined. In the above-mentioned parabolic behavior recognition method, a pre-trained parabolic behavior recognition model is used to identify whether the motion trajectory corresponds to a parabolic behavior based on the position information and time information corresponding to each of a plurality of motion pixel points on the motion trajectory. The overall implementation process does not require human intervention. Moreover, when training the parabolic behavior recognition model, a large number of rich training samples can be used to train it, so that the parabolic behavior recognition model is suitable for various application environments and can accurately identify parabolic behaviors in various application environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a process flow of a parabolic behavior identification method provided in an embodiment of the present application;

[0028] Figure 2 An exemplary target trajectory image provided in an embodiment of the present application;

[0029] Figure 3 A flowchart of a model training method provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of the structure of a device for identifying parabolic behavior provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the structure of a model training device provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure of the server provided in the embodiment of the present application

[0033] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0035] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] In order to reduce human intervention in the parabolic behavior identification process and accurately identify parabolic behavior in various application scenarios, an embodiment of the present application provides a parabolic behavior identification method.

[0037] In the parabolic behavior recognition method, firstly, the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory are obtained. The target motion trajectory is determined according to the multiple motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information. The multiple motion regions in the target trajectory image respectively belong to multiple frame images in the target video. The time information corresponding to the motion region is determined according to the order of the images to which it belongs in the target video. The time information corresponding to the motion region to which the moving pixel point belongs is the time information corresponding to the motion region to which it belongs. Then, through the parabolic behavior recognition model, according to the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined. Furthermore, according to the confidence, whether the moving target in the target video corresponds to the parabolic behavior is determined.

[0038] The above-mentioned parabolic behavior recognition method adopts a pre-trained parabolic behavior recognition model to identify whether the motion trajectory corresponds to a parabolic behavior according to the position information and time information corresponding to each of a plurality of motion pixel points on the motion trajectory. The overall implementation process does not require human intervention. In addition, since a large number of rich training samples can be used to train the parabolic behavior recognition model, the trained parabolic behavior recognition model can be applied to various application environments and can accurately identify parabolic behaviors in various application environments.

[0039] It should be noted that the parabolic behavior recognition method and model training method provided in the embodiments of the present application can be applied to various devices with data processing capabilities, such as terminal devices, servers, etc. Among them, the terminal device can specifically be a computer, a tablet computer, a personal digital assistant (PDA), and a smart phone, etc.; the server can be an application server or a Web server. When deployed specifically, the server can be an independent server or a cluster server.

[0040] The parabolic behavior identification method provided by the present application is introduced in detail below through a method embodiment.

[0041] See also Figure 1 , Figure 1 The following is a flow chart of the parabolic behavior identification method provided in the embodiment of the present application. For the convenience of description, the following embodiment is introduced by taking the server as the execution subject as an example. Figure 1 As shown, the parabolic behavior identification method includes the following steps:

[0042] Step 101: Obtain position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined based on a plurality of motion regions corresponding to the moving target in a target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined based on the order of the images to which they belong in the target video; the motion pixel point belongs to the motion region, and the time information corresponding to the motion pixel point is the time information corresponding to the motion region to which it belongs.

[0043] In practical applications, the server usually needs to detect whether parabolic behavior occurs in the scene captured by the target camera based on the target video captured by the target camera; in this case, the server usually needs to first generate a target trajectory image for representing the motion trajectory of the moving target in the target video based on the target video captured by the target camera.

[0044] In specific implementation, the server can convert each frame of the target image in the target video captured by the target camera into a corresponding motion image through a motion detection algorithm. The motion image includes a motion area corresponding to the moving target and a scene area corresponding to the scene, and the pixel value of the motion area is different from the pixel value of the static area; exemplarily, the pixel value of the motion area in the motion image can be 255, the pixel value of the scene area can be 0, and the motion area and the scene area are white and black respectively. Then, the server can filter out multiple frames of motion images from the motion images corresponding to each frame of the target image, and determine the time information corresponding to the motion area in the multiple frames of motion images according to the time sequence of the target images corresponding to each frame of the motion image in the target video. Then, according to the position of the motion area in the multiple frames of motion images and the time information corresponding to the motion area in the multiple frames of motion images, a target trajectory image is generated, and the target trajectory image can represent the motion trajectory of the moving target corresponding to the motion area.

[0045] Figure 2 The figure shows an exemplary target trajectory image, which includes multiple motion areas corresponding to a certain moving target. These multiple motion areas belong to different motion images and correspond to different time information. By connecting these multiple motion areas in series according to the order of time information from front to back, the target motion trajectory corresponding to the moving target can be fitted.

[0046] When the server specifically identifies whether the target motion trajectory in the target trajectory image corresponds to a parabolic behavior, it needs to collect multiple motion pixel points on the target motion trajectory, and determine the position coordinates of each of the multiple motion pixel points in the target trajectory image, as well as the time information corresponding to each of the multiple motion pixel points. In specific implementation, the server can further collect a pixel point located on the target motion trajectory as a motion pixel point in each motion area corresponding to the same motion target based on the motion areas in the target trajectory image that correspond to different time information; for example, the server can collect pixel points on the boundary of the motion area that intersect with the target motion trajectory as motion pixel points; further, the server can determine the position coordinates of the motion pixel point in the target trajectory image as its corresponding position information, and determine the time information corresponding to the motion area to which the motion pixel point belongs as its corresponding time information.

[0047] It should be noted that, in practical applications, the time information corresponding to the motion region can actually be the number corresponding to the motion region, which is determined according to the order in which the motion region is added to the target trajectory image, or it can be understood that the number is determined according to the order in which the image to which the motion region belongs is in the target video. Accordingly, the time information corresponding to the motion pixel point is the number corresponding to the motion region to which the motion pixel point belongs.

[0048] Optionally, in order to avoid wasting unnecessary computing and processing resources in the future, the server can make a preliminary judgment on the target motion trajectory before determining the confidence that the target motion trajectory corresponds to the parabolic behavior through the parabolic behavior recognition model, so as to determine whether the target motion trajectory is likely to correspond to the parabolic behavior. Specifically, the server can determine whether the target motion trajectory satisfies the parabolic behavior constraint condition, where the parabolic behavior constraint condition includes at least one of the following: the number corresponding to the starting motion pixel point on the target motion trajectory is less than the number corresponding to the ending motion pixel point, and the target motion trajectory crosses the target isolation object; if the target motion trajectory satisfies the parabolic behavior constraint condition, it means that the target motion trajectory is likely to correspond to the parabolic behavior, and the subsequent steps can be continued; if the target motion trajectory does not meet the parabolic behavior constraint condition, it means that the target motion trajectory is unlikely to correspond to the parabolic behavior, so there is no need to continue to execute the subsequent steps, which can reduce the waste of server computing and processing resources to a certain extent.

[0049] After fitting the target motion trajectory based on the motion area in the target trajectory image and its corresponding number, the server can usually first use a curve detection algorithm to detect whether the target motion trajectory is a parabola; when the target motion trajectory is a parabola, the server can further determine whether the number corresponding to the starting pixel point on the parabola is less than the number corresponding to the ending pixel point on the parabola. If so, it means that the target motion trajectory may correspond to parabolic behavior. Otherwise, if not, it means that the target motion trajectory is not caused by real parabolic behavior.

[0050] In addition, in real environments, objects thrown by parabolic behavior usually need to pass through specific partitions, for example, throwing objects from inside a wall to outside the wall, or throwing objects from outside the wall to inside the wall; if the detected target motion trajectory passes through the target partition, it means that the target motion trajectory may correspond to a valid parabolic behavior. Conversely, if the detected target motion trajectory does not pass through the target partition, it means that the target motion trajectory may correspond to an invalid parabolic behavior.

[0051] It should be understood that in actual applications, the server can also set other parabolic behavior constraints according to actual needs, so as to perform preliminary detection and identification of the target motion trajectory through the set parabolic behavior constraints. This application does not make any limitation on the parabolic behavior constraints.

[0052] Step 102: Determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model.

[0053] After the server collects multiple moving pixel points from the target motion trajectory and determines the position information and time information corresponding to each of the multiple moving pixel points, the server can generate a specific feature vector based on the position information and time information corresponding to each of the multiple moving pixel points, and input the feature vector into a pre-trained parabolic behavior recognition model. After analyzing and processing the input feature vector, the parabolic behavior recognition model can output the confidence level that the target motion trajectory corresponds to the parabolic behavior.

[0054] It should be noted that the parabolic behavior recognition model in the embodiment of the present application can be any neural network classification model, for example, it can be a classification network model including a three-layer perceptron, and the present application does not make any limitation on the specific structure of the parabolic behavior recognition model. The following will introduce in detail the training method of the parabolic behavior recognition model through another method embodiment.

[0055] In specific implementation, the server can generate a position feature vector based on the position coordinates of each of the multiple moving pixel points in the target trajectory image and the time information corresponding to each of the multiple moving pixel points; then, through the parabolic behavior recognition model, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined based on the position feature vector.

[0056] Exemplarily, when the time information corresponding to the moving pixel point is a number, the server can pre-set the position feature vector input into the parabolic behavior recognition model to be a 1*2T feature vector, where T is the threshold value of the number of moving areas included in the target trajectory image, and can also be understood as the maximum number corresponding to the moving areas included in the target trajectory image. The server constructs a 1*2T position feature vector f according to the position coordinates of each moving pixel point in the target trajectory image; for example, the server can normalize the position coordinates of the moving pixel point numbered t in the target trajectory image, that is, divide the horizontal coordinate x of the moving pixel point by the width w of the target trajectory image to obtain the normalized horizontal coordinate The normalized ordinate is obtained by dividing the ordinate y of the moving pixel by the height h of the target trajectory image. Will and Fill in the 2tth and 2t+1th positions in the position feature vector f; the blank elements in f can be filled with 0. Then, the server can input the position feature vector f into a pre-trained parabolic behavior recognition model to obtain the confidence of the output of the parabolic behavior recognition model.

[0057] Of course, in actual applications, the server can also adopt other methods to construct the position feature vector. For example, the position feature vector is pre-set as a feature vector of size 2*T, and the horizontal coordinate x and vertical coordinate y of the moving pixel numbered t are normalized to obtain the horizontal coordinate and the vertical coordinate After that, Fill in the tth position of the first row in the position feature vector, and Fill in the tth position in the second row of the positional eigenvector.

[0058] Step 103: Determine, based on the confidence level, whether the moving target in the target video corresponds to a parabolic behavior.

[0059] After the server obtains the confidence of the parabolic behavior recognition model output, it can determine whether the moving target corresponding to the target motion trajectory corresponds to the parabolic behavior based on the confidence. Specifically, the server can pre-set a confidence threshold. If the confidence of the parabolic behavior recognition model output is higher than the confidence threshold, it is determined that the moving target corresponding to the target motion trajectory corresponds to the parabolic behavior; conversely, if the confidence of the parabolic behavior recognition model output is not higher than the confidence threshold, it is determined that the moving target corresponding to the target motion trajectory does not correspond to the parabolic behavior.

[0060] Optionally, when it is determined that the moving target in the target video corresponds to a parabolic behavior, the server can further generate an alarm message, which is used to prompt that there is a parabolic behavior in the shooting location corresponding to the target video; in this way, the relevant staff is prompted to promptly detect whether the parabolic behavior is dangerous. For example, assuming that the target video is shot by a target camera deployed at the airport, corresponding to a specific area such as an isolation area, when the server detects that the moving target in the target video corresponds to a parabolic behavior, it can send an alarm message to the airport security personnel to notify the airport security personnel that there is a parabolic behavior in the isolation area shot by the target camera.

[0061] Optionally, the target motion trajectories in different target trajectory images may correspond to the same parabolic behavior. For example, the target motion trajectories in two target trajectory images with similar generation times may be generated by the same parabolic behavior. In order to avoid repeated alarms for the same parabolic behavior, the method provided in the embodiment of the present application can further detect whether the target motion trajectories in two target trajectory images with similar generation times correspond to the same parabolic behavior when it is detected that the target motion trajectories in the two target trajectory images with similar generation times both correspond to parabolic behavior.

[0062] That is, when it is determined that the confidence level that the first target motion trajectory determined according to the first target trajectory image corresponds to the parabolic behavior is higher than a preset confidence threshold, and when it is determined that the confidence level that the second target motion trajectory determined according to the second target trajectory image corresponds to the parabolic behavior is higher than a preset confidence threshold, and when the time interval between the first target trajectory image and the second target trajectory image is less than a preset duration, the server may collect first sampling points on the first target motion trajectory to form a first sampling point set, and collect second sampling points on the second target motion trajectory to form a second sampling point set based on a preset sampling standard; form sampling point pairs with first sampling points and second sampling points corresponding to the same horizontal coordinates in the first sampling point set and the second sampling point set; determine, for each sampling point pair, the difference between the vertical coordinates of the first sampling point and the second sampling point as the difference distance corresponding to the sampling point pair; calculate the average value of the difference distances corresponding to each sampling point pair as the average distance; determine whether the average distance is less than the preset distance threshold, and if so, determine that the first target motion trajectory and the second target motion trajectory correspond to the same parabolic behavior.

[0063] Exemplarily, the server may uniformly collect a number of first collection points according to the x-coordinate on the first target motion track in the first target trajectory image to form a first collection point set, and also uniformly collect a number of second collection points according to the x-coordinate on the second target trajectory in the second target trajectory image to form a second collection point set. Then, the first collection points and the second collection points with the same horizontal coordinates in the first collection point set and the second collection point set are used to form a collection point pair; for each collection point pair, the difference between the vertical coordinates of the first collection point and the second collection point is calculated as the difference distance corresponding to the collection point pair. Then, the average value of the difference distances corresponding to each collection point pair is calculated to obtain the average distance. It is determined whether the average distance is less than the preset distance threshold. If so, it can be determined that the first target motion track in the first target trajectory image and the second target track in the second target trajectory image actually correspond to the same parabolic behavior; otherwise, if not, it can be determined that the first target motion track in the first target trajectory image and the second target track in the second target trajectory image actually correspond to different parabolic behaviors.

[0064] In the above-mentioned parabolic behavior recognition method, firstly, the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory are obtained. The target motion trajectory is determined according to the multiple motion areas corresponding to the moving target in the target trajectory image and their respective corresponding time information. The multiple motion areas in the target trajectory image respectively belong to multiple frame images in the target video. The time information corresponding to the motion area is determined according to the order of the images to which it belongs in the target video. The time information corresponding to the motion area to which the moving pixel point belongs is the time information corresponding to the motion area to which it belongs. Then, through the parabolic behavior recognition model, according to the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined. Furthermore, according to the confidence, it is determined whether the moving target in the target video corresponds to the parabolic behavior. In this way, a pre-trained parabolic behavior recognition model is used to identify whether the motion trajectory corresponds to a parabolic behavior based on the position information and time information corresponding to each of the multiple motion pixel points on the motion trajectory. The overall implementation process does not require human intervention. In addition, since a large number of rich training samples can be used to train the parabolic behavior recognition model, the trained parabolic behavior recognition model can be applied to various application environments and can accurately identify parabolic behaviors in various application environments.

[0065] The model training method for training the above-mentioned parabolic behavior recognition model provided in the embodiment of the present application is introduced in detail below through a method embodiment.

[0066] See also Figure 3 , Figure 3 The following is a flow chart of the model training method provided in the embodiment of the present application. For the convenience of description, the following embodiment is still introduced by taking the server as the execution subject as an example. Figure 3 As shown, the model training method includes the following steps:

[0067] Step 301: Obtain a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to multiple sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to multiple sampling points on a motion trajectory corresponding to a non-parabolic behavior.

[0068] Before the server trains the parabolic behavior recognition model, it is necessary to first obtain a training sample set including a large number of training samples. The training sample set includes positive training samples corresponding to parabolic behavior and negative training samples corresponding to non-parabolic behavior, wherein the positive training samples include the position information and time information corresponding to each of the multiple sampling points on the motion trajectory corresponding to the parabolic behavior, and the negative training samples include the position information and time information corresponding to each of the multiple sampling points on the motion trajectory corresponding to the non-parabolic behavior.

[0069] In a possible implementation, the server may construct the positive training sample in the following manner: set the initial coordinates of the parabolic trajectory, the initial time information corresponding to the initial coordinates, the initial velocity and the acceleration, and simulate and generate the parabolic trajectory based on the initial coordinates, the initial velocity and the acceleration; then, collect sampling points on the parabolic trajectory in the order of time generated, and based on the initial time information, configure the corresponding time information for the sampling points in the order of time generated by the sampling points; and then, construct the positive training sample based on the initial coordinates and their corresponding initial time information, and the collected sampling points and their respective corresponding time information.

[0070] Considering that real parabolic data is difficult to obtain in real life and the quantity is small, it is usually difficult to meet the requirements of neural network model training. Therefore, the method provided in the embodiment of the present application is based on the physical laws followed by the parabolic behavior, and automatically generates a large number of positive training samples corresponding to the parabolic behavior. Specifically, the initial coordinates and their corresponding initial numbers, initial velocities and accelerations can be randomly generated within a set range, and the parabolic trajectory can be simulated and generated based on the initial coordinates, initial velocities and accelerations; then, the coordinates of each sampling point are recorded and assigned corresponding numbers in time by uniform or uneven sampling. Considering that the points on the parabolic trajectory of real parabolic behavior are not ideal particles, a disturbance within a certain range can be applied to the coordinates of each sampling point.

[0071] According to prior knowledge, the time that an object thrown by throwing behavior appears in the camera screen will not exceed t seconds, and the average frame rate of the camera is K. Then the target trajectory image generated by the video shot by the camera includes at most T=t*K motion areas corresponding to the moving target. Accordingly, T sampling points should be collected on the motion trajectory of the thrown object; therefore, the number of sampling points included in the positive training sample should not exceed T. The positive training samples generated in this way are more in line with the real parabolic data. In theory, the positive training samples generated in this way can cover various parabolic situations.

[0072] In a possible implementation, the server may construct the above-mentioned negative training samples in the following manner: by using a parabola detection algorithm, based on multiple motion areas corresponding to multiple motion targets in the trajectory image and their respective corresponding time information, detect whether the motion trajectory of the motion target is a parabola; when the motion trajectory of the motion target is not a parabola, collect multiple motion pixel points on the motion trajectory of the motion target, and construct a negative training sample based on the coordinates of each of the multiple motion pixel points in the trajectory image and the time information corresponding to the motion areas to which each of the multiple motion pixel points belongs.

[0073] Since there is no parabolic behavior in the real environment most of the time, negative training samples can be generated based on the motion trajectories corresponding to other moving targets captured by the camera. That is, the server can use a parabola detection algorithm to detect whether the motion trajectory of the moving target corresponding to the motion area is a parabola based on the multiple motion areas and their corresponding numbers in the trajectory image generated based on the video captured by the camera; if not, multiple motion pixels can be collected on the motion trajectory obtained by fitting based on the multiple motion areas, and the coordinates of each of the multiple motion pixels in the trajectory image and the numbers corresponding to the motion areas to which the multiple motion pixels belong can be used to construct negative training samples.

[0074] Considering that the resolutions of images captured by various cameras are different, it is usually necessary to normalize the coordinates (x, y) of the moving pixels in the training samples. Normalized vertical coordinate Where w and h are the width and height of the trajectory image to which the moving pixel belongs. Then a position feature vector f of size 1*2T is constructed, and the coordinates of the moving pixel numbered t are normalized and placed at the 2tth and 2t+1th positions in the position feature vector f; other blank elements of the motion feature vector can be filled with 0.

[0075] Step 302: Based on the training sample set, the parabolic behavior recognition model to be trained is trained.

[0076] After the server obtains the training sample set, it can use the positive training samples and negative training samples in the training sample set to train the pre-built parabolic behavior recognition model to be trained. The parabolic behavior recognition model can be any neural network classification model, for example, it can be a classification network model including a three-layer perceptron.

[0077] During specific training, the server can input the position feature vector determined based on the coordinates and time information corresponding to each moving pixel point in the training sample into the parabolic behavior recognition model to be trained; the parabolic behavior recognition model analyzes and processes the input position feature vector and outputs the prediction confidence. Furthermore, the server can construct a cross-entropy loss function based on the prediction confidence and the behavior type corresponding to the training sample (i.e., whether it is a parabolic behavior), and adjust the model parameters in the trained parabolic behavior recognition model based on the cross-entropy loss function. It should be understood that when the training sample is a positive training sample, the standard confidence corresponding to the positive training sample should be 1, and the server can construct a cross-entropy loss function based on the prediction confidence output by the parabolic behavior recognition model and 1; when the training sample is a negative training sample, the standard confidence corresponding to the negative training sample should be 0, and the server can construct a cross-entropy loss function based on the prediction confidence output by the parabolic behavior recognition model and 0.

[0078] Step 303: When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed.

[0079] During the training of the parabolic behavior recognition model, the server can determine whether the parabolic behavior recognition model meets the training end conditions; if the parabolic behavior recognition model has met the training end conditions, it can be confirmed that the training of the parabolic behavior recognition model is completed and the parabolic behavior recognition model can be put into practical application.

[0080] Exemplarily, the server may use the test sample set to test the model performance of the parabolic behavior recognition model. If the test result obtained by the test indicates that the accuracy of the parabolic behavior recognition model reaches a preset accuracy threshold, the server may consider that the parabolic behavior recognition model has met the training end condition; alternatively, the server may also determine whether the number of iterative training for the parabolic behavior recognition model has reached a preset training number threshold. If it has reached the threshold, the parabolic behavior recognition model may also be considered to have met the training end condition. This application does not make any limitation on the above training end condition.

[0081] In the above model training method, the server first obtains a training sample set, which includes positive training samples and negative training samples. The positive training samples include the position information and time information corresponding to multiple sampling points on the motion trajectory corresponding to the parabolic behavior, and the negative training samples include the position information and time information corresponding to multiple sampling points on the motion trajectory corresponding to the non-parabolic behavior. Then, based on the training sample set, the parabolic behavior recognition model to be trained is trained. When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed. In this way, when training the parabolic behavior recognition model, a large number of rich training samples are used to train it, so that the trained parabolic behavior recognition model can be suitable for various application environments and can accurately identify parabolic behaviors in various application environments.

[0082] The present application also provides a device for identifying parabolic behavior. Figure 4 , Figure 4 A schematic diagram of the structure of a parabolic behavior recognition device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device comprises:

[0083] The information acquisition module 401 is used to acquire the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory; the target motion trajectory is determined according to the multiple motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the multiple motion regions respectively belong to multiple frame images in the target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the moving pixel point belongs to the moving region, and the time information corresponding to the moving pixel point is the time information corresponding to the moving region to which it belongs;

[0084] A confidence determination module 402 is used to determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model;

[0085] The behavior recognition module 403 is used to determine whether the moving target in the target video corresponds to a parabolic behavior according to the confidence level.

[0086] Optionally, the confidence determination module 402 is specifically configured to:

[0087] Generate a position feature vector according to the position coordinates of each of the plurality of moving pixel points in the target trajectory image and the time information corresponding to each of the plurality of moving pixel points;

[0088] The confidence level that the target motion trajectory corresponds to the parabolic behavior is determined according to the position feature vector through the parabolic behavior recognition model.

[0089] Optionally, the position feature vector is a feature vector of size 1*2T, where T is determined according to a threshold value of the number of motion regions in the target trajectory image, and T is a positive integer greater than 1; the time information corresponding to the motion pixel point is a number, and the number is determined according to the order in which the motion region to which the motion pixel point belongs is added to the target trajectory image; the confidence determination module 402 is specifically used to:

[0090] For each of the moving pixel points, the horizontal coordinate and the vertical coordinate of the moving pixel point in the target trajectory image are normalized respectively; according to the number t corresponding to the moving pixel point, the normalized horizontal coordinate and vertical coordinate are filled into the position 2t and the position 2t+1 in the position feature vector respectively.

[0091] Optionally, when it is determined that the confidence level that the first target motion trajectory determined according to the first target trajectory image corresponds to the parabolic behavior is higher than a preset confidence threshold, and it is determined that the confidence level that the second target motion trajectory determined according to the second target trajectory image corresponds to the parabolic behavior is higher than the preset confidence threshold, and the time interval between the first target trajectory image and the second target trajectory image is less than a preset time length, the device further includes:

[0092] The same parabolic behavior judgment module is used to collect first sampling points on the first target motion trajectory to form a first sampling point set, and collect second sampling points on the second target motion trajectory to form a second sampling point set based on a preset sampling standard; the first sampling points and the second sampling points corresponding to the same horizontal coordinate in the first sampling point set and the second sampling point set are combined into sampling point pairs; for each of the sampling point pairs, the vertical coordinate difference between the first sampling point and the second sampling point is determined as the difference distance corresponding to the sampling point pair; the average value of the difference distance corresponding to each of the sampling point pairs is calculated as the average distance; and it is determined whether the average distance is less than a preset distance threshold. If so, it is determined that the first target motion trajectory and the second target motion trajectory correspond to the same parabolic behavior.

[0093] Optionally, the time information corresponding to the moving pixel point is a number, and the number is determined according to the order in which the moving area to which the moving pixel point belongs is added to the target trajectory image; the device further includes:

[0094] A parabolic behavior prediction module is used to determine whether the target motion trajectory satisfies the parabolic behavior constraint conditions; the parabolic behavior constraint conditions include at least one of the following: the number corresponding to the starting motion pixel point on the target motion trajectory is less than the number corresponding to the ending motion pixel point, and the target motion trajectory crosses the target isolation object; if so, the parabolic behavior recognition model is executed to determine the confidence that the target motion trajectory corresponds to the parabolic behavior based on the position information and numbers corresponding to each of the multiple motion pixel points on the target motion trajectory.

[0095] The parabolic behavior recognition device first obtains the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory, the target motion trajectory is determined according to the multiple motion areas corresponding to the moving target in the target trajectory image and their respective corresponding time information, the multiple motion areas in the target trajectory image respectively belong to multiple frame images in the target video, the time information corresponding to the motion area is determined according to the order of the images to which it belongs in the target video, the motion pixel point belongs to the motion area, and the time information corresponding to the motion pixel point is the time information corresponding to the motion area to which it belongs; then, through the parabolic behavior recognition model, according to the position information and time information corresponding to each of the multiple moving pixel points on the target motion trajectory, the confidence that the target motion trajectory corresponds to the parabolic behavior is determined; and then, according to the confidence, whether the moving target in the target video corresponds to the parabolic behavior is determined. In this way, a pre-trained parabolic behavior recognition model is used to identify whether the motion trajectory corresponds to a parabolic behavior based on the position information and time information corresponding to each of the multiple motion pixel points on the motion trajectory. The overall implementation process does not require human intervention. In addition, since a large number of rich training samples can be used to train the parabolic behavior recognition model, the trained parabolic behavior recognition model can be applied to various application environments and can accurately identify parabolic behaviors in various application environments.

[0096] The present application also provides a model training device. Figure 5 , Figure 5 The model training device provided in the embodiment of the present application is as follows: Figure 5 As shown, the device comprises:

[0097] A training sample acquisition module, used to acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior;

[0098] The training module is used to train the parabolic behavior recognition model to be trained based on the training sample set; when the parabolic behavior recognition model meets the training end condition, determine that the training of the parabolic behavior recognition model is completed.

[0099] Optionally, the device further comprises:

[0100] The positive sample construction module is used to set the initial coordinates of the parabolic trajectory, the initial time information corresponding to the initial coordinates, the initial velocity and the acceleration, and simulate the generation of the parabolic trajectory based on the initial coordinates, the initial velocity and the acceleration; collect sampling points on the parabolic trajectory in the order of time generated, and configure the corresponding time information for the sampling points based on the initial time information according to the time sequence in which the sampling points are generated; and construct the positive training sample based on the initial coordinates and the initial time information corresponding to them, and the collected sampling points and their respective corresponding time information.

[0101] Optionally, the device further comprises:

[0102] A negative sample construction module is used to collect multiple moving pixel points on the moving trajectory of the moving target when the moving trajectory of the moving target is not a parabola, and construct the negative training sample based on the coordinates of each of the multiple moving pixel points in the trajectory image and the time information corresponding to the moving area to which each of the multiple moving pixel points belongs.

[0103] The above-mentioned model training device first obtains a training sample set, which includes positive training samples and negative training samples. The positive training samples include the position information and time information corresponding to multiple sampling points on the motion trajectory corresponding to the parabolic behavior, and the negative training samples include the position information and time information corresponding to multiple sampling points on the motion trajectory corresponding to the non-parabolic behavior. Then, based on the training sample set, the parabolic behavior recognition model to be trained is trained. When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed. In this way, when training the parabolic behavior recognition model, a large number of rich training samples are used to train it, so that the trained parabolic behavior recognition model can be suitable for various application environments and can accurately recognize parabolic behaviors in various application environments.

[0104] The embodiment of the present application also provides a device for identifying parabolic behavior and model training, which device can specifically be a server or a terminal device. The server and terminal device provided in the embodiment of the present application will be introduced below from the perspective of hardware entity.

[0105] See also Figure 6 , Figure 6A schematic diagram of the structure of a server 600 provided for an embodiment of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 may be temporary storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 622 may be configured to communicate with the storage medium 660 to execute a series of instruction operations in the storage medium 660 on the server 600.

[0106] The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0107] The steps performed by the server in the above embodiment can be based on the Figure 6 The server structure shown.

[0108] The CPU 622 is used to execute the following steps:

[0109] Acquire position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the moving pixel point belongs to the motion region, and the time information corresponding to the moving pixel point is the time information corresponding to the motion region to which it belongs;

[0110] Determining the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model;

[0111] According to the confidence level, it is determined whether the moving target in the target video corresponds to a parabolic behavior.

[0112] or,

[0113] Acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior;

[0114] Based on the training sample set, training the parabolic behavior recognition model to be trained;

[0115] When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed.

[0116] Optionally, the CPU 622 may also be used to execute steps of any implementation method of the parabolic behavior identification method and the model training method provided in the embodiments of the present application.

[0117] See also Figure 7 , Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The terminal can be any terminal device including a computer, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), etc., taking the terminal as a computer as an example:

[0118] Figure 7 FIG. 1 is a block diagram showing a partial structure of a computer related to a terminal provided in an embodiment of the present application. Figure 7 The computer includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art will appreciate that Figure 7 The computer structure shown in the figure does not constitute a limitation of the computer, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0119] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the computer by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0120] The processor 780 is the control center of the computer. It uses various interfaces and lines to connect various parts of the entire computer. It executes various functions of the computer and processes data by running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, so as to monitor the computer as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.

[0121] In the embodiment of the present application, the processor 780 included in the terminal also has the following functions:

[0122] Acquire position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the moving pixel point belongs to the motion region, and the time information corresponding to the moving pixel point is the time information corresponding to the motion region to which it belongs;

[0123] Determining the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model;

[0124] According to the confidence level, it is determined whether the moving target in the target video corresponds to a parabolic behavior.

[0125] or,

[0126] Acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior;

[0127] Based on the training sample set, training the parabolic behavior recognition model to be trained;

[0128] When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed.

[0129] Optionally, the processor 780 is also used to execute the steps of any implementation method of the parabolic behavior identification method and model training method provided in the embodiments of the present application.

[0130] An embodiment of the present application also provides a computer-readable storage medium for storing program code, which is used to execute any one of the implementation methods of a parabolic behavior identification method and a model training method described in the aforementioned embodiments.

[0131] An embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any one of the implementation methods of a parabolic behavior identification method and a model training method described in the aforementioned embodiments.

[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.

[0137] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0138] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A parabolic behavior identification method, characterized in that: The method comprises: Acquire position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the moving pixel point belongs to the motion region, and the time information corresponding to the moving pixel point is the time information corresponding to the motion region to which it belongs; Determining the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model; Determining, according to the confidence level, whether the moving target in the target video corresponds to a parabolic behavior; In the case where it is determined that the confidence level that the first target motion trajectory determined according to the first target trajectory image corresponds to the parabolic behavior is higher than a preset confidence threshold, and the confidence level that the second target motion trajectory determined according to the second target trajectory image corresponds to the parabolic behavior is higher than the preset confidence threshold, and the time interval between the first target trajectory image and the second target trajectory image is less than a preset time length, the method further includes: based on a preset sampling standard, collecting first sampling points on the first target motion trajectory to form a first sampling point set, and collecting second sampling points on the second target motion trajectory to form a second sampling point set; forming sampling point pairs from first sampling points and second sampling points corresponding to the same horizontal coordinate in the first sampling point set and the second sampling point set; determining, for each sampling point pair, a difference between the vertical coordinates of the first sampling point and the second sampling point as a difference distance corresponding to the sampling point pair; calculating an average value of the difference distances corresponding to each sampling point pair as an average distance; judging whether the average distance is less than a preset distance threshold, and if so, determining that the first target motion trajectory and the second target motion trajectory correspond to the same parabolic behavior.

2. The method according to claim 1, characterized in that The parabolic behavior recognition model is used to determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory, including: Generate a position feature vector according to the position coordinates of each of the plurality of moving pixel points in the target trajectory image and the time information corresponding to each of the plurality of moving pixel points; The confidence level that the target motion trajectory corresponds to the parabolic behavior is determined according to the position feature vector through the parabolic behavior recognition model.

3. The method according to claim 2, characterized in that The position feature vector is a feature vector of size 1*2T, where T is determined according to a threshold value of the number of motion regions in the target trajectory image, and T is a positive integer greater than 1; the time information corresponding to the motion pixel point is a number, and the number is determined according to the order in which the motion region to which the motion pixel point belongs is added to the target trajectory image; Then, generating a position feature vector according to the position coordinates of each of the plurality of moving pixel points in the target trajectory image and the time information corresponding to each of the plurality of moving pixel points includes: For each of the moving pixel points, the horizontal coordinate and the vertical coordinate of the moving pixel point in the target trajectory image are normalized respectively; according to the number t corresponding to the moving pixel point, the normalized horizontal coordinate and the vertical coordinate are filled into the position 2t and the position 2t+1 in the position feature vector respectively.

4. The method according to claim 1, characterized in that: The time information corresponding to the moving pixel point is a number, and the number is determined according to the order in which the moving area to which the moving pixel point belongs is added to the target trajectory image; Before determining the confidence that the target motion trajectory corresponds to the parabolic behavior based on the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory by using the parabolic behavior recognition model, the method further includes: Determining whether the target motion trajectory satisfies parabolic behavior constraint conditions; The parabolic behavior constraint condition includes at least one of the following: the number corresponding to the starting motion pixel point on the target motion trajectory is less than the number corresponding to the ending motion pixel point, and the target motion trajectory crosses the target isolation object; If so, the parabolic behavior recognition model is executed to determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and numbers corresponding to each of the plurality of motion pixel points on the target motion trajectory.

5. The method according to claim 1, characterized in that The method further comprises: Acquire a training sample set; the training sample set includes positive training samples and negative training samples, the positive training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a parabolic behavior, and the negative training samples include position information and time information corresponding to a plurality of sampling points on a motion trajectory corresponding to a non-parabolic behavior; Based on the training sample set, training the parabolic behavior recognition model to be trained; When the parabolic behavior recognition model meets the training end condition, it is determined that the training of the parabolic behavior recognition model is completed.

6. The method according to claim 5, characterized in that The positive training samples are constructed in the following way: Setting the initial coordinates of the parabolic trajectory, the initial time information corresponding to the initial coordinates, the initial velocity and the acceleration, and simulating and generating the parabolic trajectory based on the initial coordinates, the initial velocity and the acceleration; Collecting sampling points on the parabolic trajectory in the order of time generated, and configuring corresponding time information for the sampling points based on the initial time information in the order of time generated by the sampling points; The positive training samples are constructed based on the initial coordinates and the initial time information corresponding thereto, and the collected sampling points and the time information corresponding thereto.

7. The method according to claim 5, characterized in that The negative training samples are constructed in the following way: Using a parabola detection algorithm, based on multiple motion regions corresponding to multiple motion targets in the trajectory image and their respective corresponding time information, detecting whether the motion trajectory of the motion target is a parabola; When the motion trajectory of the moving target is not a parabola, a plurality of moving pixel points are collected on the motion trajectory of the moving target, and the negative training samples are constructed based on the coordinates of each of the plurality of moving pixel points in the trajectory image and the time information corresponding to the motion areas to which the plurality of moving pixel points belong.

8. A parabolic behavior recognition device, characterized in that: The device comprises: An information acquisition module is used to acquire the position information and time information corresponding to each of a plurality of moving pixel points on a target motion trajectory; the target motion trajectory is determined according to a plurality of motion regions corresponding to the moving target in the target trajectory image and their respective corresponding time information, the plurality of motion regions respectively belong to a plurality of frame images in a target video, and the time information corresponding to the motion region is determined according to the order of the images to which they belong in the target video; the motion pixel point belongs to the motion region, and the time information corresponding to the motion pixel point is the time information corresponding to the motion region to which it belongs; A confidence determination module, used to determine the confidence that the target motion trajectory corresponds to the parabolic behavior according to the position information and time information corresponding to each of the plurality of motion pixel points on the target motion trajectory through a parabolic behavior recognition model; A behavior recognition module, used to determine whether the moving target in the target video corresponds to a parabolic behavior according to the confidence level; In the case where it is determined that the confidence level that the first target motion trajectory determined according to the first target trajectory image corresponds to the parabolic behavior is higher than a preset confidence threshold, and it is determined that the confidence level that the second target motion trajectory determined according to the second target trajectory image corresponds to the parabolic behavior is higher than the preset confidence threshold, and the time interval between the first target trajectory image and the second target trajectory image is less than a preset time length, the device further includes: The same parabolic behavior judgment module is used to collect first sampling points on the first target motion trajectory to form a first sampling point set, and collect second sampling points on the second target motion trajectory to form a second sampling point set based on a preset sampling standard; the first sampling points and the second sampling points corresponding to the same horizontal coordinate in the first sampling point set and the second sampling point set are combined into sampling point pairs; for each of the sampling point pairs, the vertical coordinate difference between the first sampling point and the second sampling point is determined as the difference distance corresponding to the sampling point pair; the average value of the difference distance corresponding to each of the sampling point pairs is calculated as the average distance; and it is determined whether the average distance is less than a preset distance threshold. If so, it is determined that the first target motion trajectory and the second target motion trajectory correspond to the same parabolic behavior.

9. A device, characterized in that: The device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to call the computer program to execute the parabolic behavior identification method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the parabolic behavior identification method according to any one of claims 1 to 7.