A method for detecting objects thrown from high altitude, electronic equipment and storage medium
By obtaining and analyzing the determination parameters of motion trajectories, and using machine learning models for prediction, the problem of high false detection rate in high-altitude parabola detection in the existing technology is solved, and the correct recognition rate of target objects is improved.
Patent Information
- Application Number
- CN202410559226.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-08
AI Technical Summary
Existing high-altitude parabola detection methods are prone to misdetection in harsh environments and complex backgrounds, resulting in low accuracy of target objects.
By obtaining the trajectory point parameters of multiple motion trajectories, the determination parameters such as curvature, speed, acceleration, distance, trajectory slope, trajectory duration, and number of trajectory points are determined, and the preset machine learning model (such as a lightweight gradient boosting machine learning model) is used. Perform trajectory prediction. If the prediction result meets the condition that the confidence level is greater than 0.5, it is determined that the target object is a high-altitude parabola.
It improves the accuracy of high-altitude parabolic trajectories, reduces the false detection rate, and improves detection efficiency and management efficiency.
Smart Images

Figure CN118134962B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and in particular relates to a method for detecting objects thrown from high altitudes, an electronic device, and a storage medium. Background Art
[0002] In the current detection methods of high-altitude objects, edge computing methods are generally used to track the motion trajectory of the dropped objects on the images obtained by the smart camera. However, due to the small imaging size of the target object in the image, the existing technology cannot effectively capture small-sized targets, and is easily disturbed by other objects with motion trajectories, and is also easily affected by harsh environments and complex backgrounds, resulting in a high false detection rate of high-altitude objects, that is, the accuracy rate of detecting high-altitude objects is relatively low.
[0003] The existing technology has the problem that the accuracy rate of the detection method for determining that the target object of the motion trajectory is a high-altitude thrown object is relatively low. Summary of the invention
[0004] The embodiments of the present application provide a method for detecting objects thrown from high altitude, an electronic device, and a storage medium, which can solve the problem that the detection method has a relatively low accuracy rate in determining that a target object of a motion trajectory is an object thrown from high altitude.
[0005] In a first aspect, an embodiment of the present application provides a method for detecting objects thrown from a high altitude, comprising:
[0006] Acquire trajectory point parameters of a plurality of motion trajectories, wherein the motion trajectory is a falling trajectory of a target moving object;
[0007] Based on the trajectory point parameters corresponding to each of the motion trajectories, respectively determine the trajectory determination parameters corresponding to each of the motion trajectories;
[0008] Based on the trajectory determination parameters of each of the motion trajectories, determining a trajectory prediction result of any of the motion trajectories through a preset machine learning model;
[0009] If the trajectory prediction result meets the preset conditions, it is determined that the target moving object corresponding to the motion trajectory is a high-altitude parabolic object.
[0010] In one of the embodiments, the trajectory determination parameters include curvature parameters, speed parameters, acceleration parameters, distance parameters, trajectory slope, trajectory duration, number of trajectory points and trajectory height;
[0011] The determining of trajectory determination parameters corresponding to each of the motion trajectories based on the trajectory point parameters corresponding to each of the motion trajectories respectively includes:
[0012] Based on the trajectory point parameters corresponding to each of the motion trajectories, the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each of the motion trajectories are determined respectively.
[0013] In one embodiment, the trajectory point parameters include first direction coordinates, second direction coordinates and a timestamp, and the first direction is perpendicular to the second direction;
[0014] The method of determining the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each motion trajectory based on the trajectory point parameters corresponding to each motion trajectory includes:
[0015] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each of the motion trajectories are respectively determined.
[0016] In one embodiment, the curvature parameters include a maximum curvature value, a minimum curvature value, a mean curvature value, and a curvature variance value; the speed parameters include a maximum speed value, a minimum speed value, a mean speed value, and a speed variance value; the acceleration parameters include a maximum acceleration value, a minimum acceleration value, a mean acceleration value, and an acceleration variance value; and the distance parameters include a displacement, a distance, and a distance-displacement difference;
[0017] The method of determining the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each motion trajectory based on the first direction coordinate, the second direction coordinate and the timestamp corresponding to each motion trajectory respectively includes:
[0018] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum curvature, the minimum curvature, the average curvature and the curvature variance value corresponding to each of the motion trajectories;
[0019] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum speed value, the minimum speed value, the average speed value and the speed variance value corresponding to each of the motion trajectories;
[0020] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum acceleration value, the minimum acceleration value, the average acceleration value and the acceleration variance value corresponding to each of the motion trajectories;
[0021] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the displacement, the distance and the distance-displacement difference corresponding to each of the motion trajectories;
[0022] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each of the motion trajectories are respectively determined.
[0023] In one embodiment, the trajectory prediction result of any of the motion trajectories is determined by a preset machine learning model based on the trajectory determination parameters of each of the motion trajectories, including:
[0024] Based on the trajectory determination parameters of each of the motion trajectories, determining a trajectory determination parameter training set and a trajectory determination parameter test set;
[0025] Based on the trajectory determination parameter training set and the trajectory determination parameter test set, training the preset machine learning model to obtain the trained preset machine learning model;
[0026] Based on the trajectory determination parameters of each of the motion trajectories, the trajectory prediction result of any of the motion trajectories is determined by using the trained preset machine learning model.
[0027] In one of the embodiments, the preset machine learning model is a lightweight gradient boosting machine learning model;
[0028] The trajectory determination parameter based on each of the motion trajectories, and determining the trajectory prediction result of any of the motion trajectories through the trained preset machine learning model, includes:
[0029] Based on the continuous trajectory determination parameters corresponding to each of the motion trajectories, determining a first preset number of intervals through the trained preset machine learning model;
[0030] Based on the trajectory determination parameter corresponding to any of the motion trajectories and the first preset number of intervals, determining the first preset number of histograms and statistical values of the trajectory determination parameter corresponding to each of the histograms;
[0031] Based on the statistical values of the trajectory determination parameters corresponding to each of the histograms, the trajectory prediction result of any of the motion trajectories is determined by using a second preset number of decision trees of the trained preset machine learning model.
[0032] In one embodiment, the first preset number is less than or equal to 256;
[0033] The second preset number ranges from 3 to 5.
[0034] In one of the embodiments, the preset condition is that the confidence level of the trajectory prediction result is greater than or equal to 0.5.
[0035] In a second aspect, an embodiment of the present application provides a device for detecting objects thrown from a high altitude, comprising:
[0036] An acquisition module, used to acquire trajectory point parameters of a plurality of motion trajectories, wherein the motion trajectory is a falling trajectory of a target moving object;
[0037] A first determination module, configured to determine trajectory determination parameters corresponding to each of the motion trajectories based on the trajectory point parameters corresponding to each of the motion trajectories;
[0038] A second determination module, configured to determine a trajectory prediction result of any of the motion trajectories through a preset machine learning model based on the trajectory determination parameters of each of the motion trajectories;
[0039] The third determination module is used to determine that the target moving object corresponding to the motion trajectory is a high-altitude parabolic object if the trajectory prediction result meets a preset condition.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a method as described in any one of the contents of the first aspect above.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the contents of the first aspect above is implemented.
[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the terminal device to execute any of the methods described in the first aspect above.
[0043] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0044] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0045] The present application obtains trajectory point parameters of multiple motion trajectories, wherein the motion trajectory is the falling trajectory of the target moving object; based on the trajectory point parameters corresponding to each motion trajectory, the trajectory judgment parameters corresponding to each motion trajectory are determined respectively; based on the trajectory judgment parameters of each motion trajectory, the trajectory prediction result of any motion trajectory is determined through a preset machine learning model; if the trajectory prediction result meets the preset conditions, the target moving object corresponding to the motion trajectory is determined to be a high-altitude parabola. Compared with the detection method of the prior art, since the trajectory judgment parameters corresponding to each motion trajectory are determined respectively for the falling trajectory of the target moving object, the use of the trajectory judgment parameters improves the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and predicts each motion trajectory through a preset machine learning model according to the trajectory judgment parameters, and the prediction result must meet the preset conditions before the target moving object corresponding to the motion trajectory can be determined to be a high-altitude parabola, thereby further improving the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and then improving the accuracy of the target moving object of the motion trajectory as a high-altitude parabola. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 It is a flow chart of a method for detecting objects thrown from a high altitude provided in one embodiment of the present application;
[0048] Figure 2 It is a flowchart of determining the curvature parameter, speed parameter, acceleration parameter, distance parameter, trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory based on the first direction coordinates, second direction coordinates and timestamps corresponding to each motion trajectory provided by another embodiment of the present application;
[0049] Figure 3 It is a flow chart of determining the trajectory prediction result of any motion trajectory through a preset machine learning model based on the trajectory determination parameters of each motion trajectory provided by another embodiment of the present application;
[0050] Figure 4 It is a flow chart of determining the trajectory prediction result of any motion trajectory through a trained preset machine learning model based on the trajectory determination parameters of each motion trajectory provided by another embodiment of the present application;
[0051] Figure 5 It is a structural schematic diagram of a device for detecting objects thrown from high altitudes provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0053] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0054] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0055] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0056] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0057] As a dangerous behavior, throwing objects from high places has gradually become an important basis for judging community and urban civilization after being written into the criminal law. In the application of high-altitude object dropping detection, various image processing algorithms can detect objects dropped from high places in real time, draw the trajectory of the drop, and retain video clips. When high-altitude object dropping incidents cause adverse consequences, it greatly reduces the manpower time for backtracking surveillance video searches, provides evidence, improves the overall quality of residents, reduces uncivilized behavior, and reduces the damage caused by dropped objects to those below.
[0058] In the current detection methods of high-altitude objects, edge computing methods are generally used to track the motion trajectory of the dropped objects on the images obtained by the smart camera. In the actual surveillance video of high-altitude objects, since the target objects dropped from high floors are small in size and fast in speed (such as cigarette butts, small stones, etc.), or the camera is far away from the floor, the image size of the target object is small in size. The existing technology cannot effectively capture small-sized targets and is easily disturbed by other objects with motion trajectories (such as mosquitoes, flying birds, fallen leaves, rain and snow, etc.). It is also easily affected by harsh environments and complex backgrounds (such as haze, rain and snow, too strong light, insufficient lighting at night, etc.), resulting in a high false detection rate of high-altitude objects, that is, the accuracy rate of detecting high-altitude objects is relatively low.
[0059] Therefore, the existing technology has the problem that the accuracy of the detection method for determining that the target object of the motion trajectory is a high-altitude projectile is relatively low.
[0060] The embodiments of the present application obtain trajectory point parameters of multiple motion trajectories, wherein the motion trajectory is the falling trajectory of the target moving object; based on the trajectory point parameters corresponding to each motion trajectory, the trajectory judgment parameters corresponding to each motion trajectory are determined respectively; based on the trajectory judgment parameters of each motion trajectory, the trajectory prediction result of any motion trajectory is determined through a preset machine learning model; if the trajectory prediction result meets the preset conditions, the target moving object corresponding to the motion trajectory is determined to be a high-altitude parabola. Compared with the detection method of the prior art, since the trajectory judgment parameters corresponding to each motion trajectory are determined respectively for the falling trajectory of the target moving object, the trajectory judgment parameters are used to improve the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and each motion trajectory is predicted through a preset machine learning model according to the trajectory judgment parameters, and the prediction result must meet the preset conditions before the target moving object corresponding to the motion trajectory can be determined to be a high-altitude parabola, thereby further improving the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and then improving the accuracy of the target object of the motion trajectory as a high-altitude parabola.
[0061] The technical solution of the present application is described below through specific embodiments.
[0062] First, as Figure 1As shown, this embodiment provides a method for detecting objects thrown from a high altitude, including:
[0063] S100, obtaining trajectory point parameters of a plurality of motion trajectories, wherein the motion trajectory is a falling trajectory of a target moving object.
[0064] In one embodiment, trajectory point parameters of a plurality of motion trajectories are obtained, wherein the motion trajectory is a falling trajectory of a target moving object, which is conducive to determining trajectory determination parameters according to the trajectory point parameters of each motion trajectory.
[0065] In one embodiment, before the step of obtaining trajectory point parameters of a plurality of motion trajectories, the method further includes:
[0066] The method comprises the following steps: obtaining a video stream to be detected; reading pictures in the video stream to be detected frame by frame to obtain multiple frames of images; converting each image into a grayscale image; performing difference calculations on the pixel values of two adjacent frames of images in turn using a frame difference method to obtain a trajectory image of a target moving object; binarizing the trajectory image, and using a contour extraction method to determine the coordinate points of the four corners of the minimum circumscribed rectangle of the target moving object in the trajectory image; based on the coordinate points of the four corners, determining the center point of the circumscribed rectangle as the trajectory point of the target moving object; and synthesizing the trajectory points of the trajectory images separated by a preset number of frames to obtain a trajectory synthesis image.
[0067] In one embodiment, trajectory point parameters of each trajectory point of any motion trajectory are obtained at intervals of a preset number of trajectory points on a trajectory composite image, wherein the preset number of trajectory points is equal to the value of the preset number of frames, so as to reduce the amount of calculation and improve the detection speed of high-altitude objects.
[0068] In one embodiment, the trajectory point parameters include first direction coordinates, second direction coordinates and timestamps, and the first direction is perpendicular to the second direction. The upper left corner vertex of the trajectory image is the coordinate origin of the coordinate system, the direction from the coordinate origin horizontally to the right is the first direction, the coordinate axis of the first direction from the coordinate origin horizontally to the right is the horizontal coordinate x-axis, the direction from the coordinate origin vertically downward is the second direction, and the coordinate axis of the second direction vertically downward from the coordinate origin is the vertical coordinate y-axis.
[0069] S200 , determining trajectory determination parameters corresponding to each motion trajectory based on trajectory point parameters corresponding to each motion trajectory.
[0070] In one embodiment, based on the trajectory point parameters corresponding to each motion trajectory, trajectory determination parameters corresponding to each motion trajectory are determined respectively, which is conducive to classifying and identifying the motion trajectory according to the trajectory determination parameters.
[0071] In one embodiment, the trajectory judgment parameters include curvature parameters, speed parameters, acceleration parameters, distance parameters, trajectory slope, trajectory duration, number of trajectory points and trajectory height. Various trajectory judgment parameters can improve the accuracy of identifying the motion trajectory as a high-altitude parabolic motion trajectory.
[0072] In one embodiment, based on the trajectory point parameters corresponding to each motion trajectory, trajectory determination parameters corresponding to each motion trajectory are determined respectively, including:
[0073] Based on the trajectory point parameters corresponding to each motion trajectory, the curvature parameter, speed parameter, acceleration parameter, distance parameter, trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively.
[0074] In one embodiment, based on the trajectory point parameters corresponding to each motion trajectory, the curvature parameter, speed parameter, acceleration parameter, distance parameter, trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively, thereby improving the accuracy of identifying the motion trajectory as a high-altitude parabolic motion trajectory.
[0075] In one embodiment, based on the trajectory point parameters corresponding to each motion trajectory, the curvature parameter, speed parameter, acceleration parameter, distance parameter, trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively, including:
[0076] Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each motion trajectory are determined respectively.
[0077] In one embodiment, based on the first direction coordinates, second direction coordinates and timestamps corresponding to each motion trajectory, the curvature parameters, speed parameters, acceleration parameters, distance parameters, trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively, thereby further improving the accuracy of identifying the motion trajectory as a high-altitude parabolic motion trajectory.
[0078] In one embodiment, the number of motion trajectories is N, the number of trajectory points of any motion trajectory is m, and each trajectory point has three trajectory point parameters (i.e., first direction coordinates, second direction coordinates, and timestamp). Then, the data set for obtaining the trajectory point parameters of multiple motion trajectories is N m*3-dimensional matrices.
[0079] In one embodiment, the curvature parameters include the maximum curvature, the minimum curvature, the average curvature and the curvature variance; the speed parameters include the maximum speed, the minimum speed, the average speed and the speed variance; the acceleration parameters include the maximum acceleration, the minimum acceleration, the average acceleration and the acceleration variance; the distance parameters include the displacement, the distance and the distance-displacement difference.
[0080] In one embodiment, Figure 2 As shown, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each motion trajectory are determined respectively, including:
[0081] S210 , based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, respectively determine the maximum curvature, the minimum curvature, the average curvature and the curvature variance value corresponding to each motion trajectory.
[0082] It can be understood that the curvature can be represented as the value of the curvature of the motion trajectory at any point on the trajectory. The larger the curvature, the greater the curvature of the motion trajectory, and the smaller the curvature, the smaller the curvature of the motion trajectory. The trajectory point where the maximum curvature is located is the position with the greatest curvature in the motion trajectory, and the trajectory point where the minimum curvature is located is the position with the least curvature in the motion trajectory. The mean curvature represents the average curvature of the motion trajectory, and the variance of the curvature represents the amplitude of the change in the curvature of the motion trajectory, which is used to determine the curvature direction of the trajectory point in the motion trajectory.
[0083] In one embodiment, based on the first direction coordinates and the second direction coordinates corresponding to each motion trajectory, determining the maximum curvature, the minimum curvature, the average curvature, and the curvature variance corresponding to each motion trajectory includes:
[0084] S211, based on the first direction coordinates and the second direction coordinates corresponding to the multiple trajectory points of any motion trajectory, determine the curvature corresponding to the multiple trajectory points of any motion trajectory by using a curvature calculation formula.
[0085] In one embodiment, the curvature calculation formula is:
[0086]
[0087] in, For the i The curvature at the trajectory point, i is a positive integer;
[0088] For the i The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0089] For the i+1 The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0090] For the i The second direction coordinate (i.e., ordinate) of the trajectory point;
[0091] For the i+1 The second direction coordinate (i.e., the vertical coordinate) of the trajectory point.
[0092] S212, based on the curvatures corresponding to a plurality of trajectory points of any motion trajectory, determining the maximum value of the curvature corresponding to each motion trajectory.
[0093] In one embodiment, based on the maximum value calculation of the curvatures corresponding to multiple trajectory points of any motion trajectory, the maximum curvature value corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectories according to the maximum curvature.
[0094] In one embodiment, the curvature maximum The calculation formula is:
[0095]
[0096] in, For the m The curvature at the trajectory point, m Is a positive integer.
[0097] S213, based on the curvatures corresponding to a plurality of trajectory points of any motion trajectory, determining the minimum curvature corresponding to each motion trajectory.
[0098] In one embodiment, based on the minimum value operation of the curvatures corresponding to multiple trajectory points of any motion trajectory, the minimum curvature corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectories according to the minimum curvature.
[0099] In one embodiment, the curvature minimum The calculation formula is:
[0100]
[0101] in, For the m The curvature at the trajectory point, m Is a positive integer.
[0102] S214, based on the curvatures corresponding to a plurality of trajectory points of any motion trajectory, determine an average value of the curvatures corresponding to each motion trajectory.
[0103] In one embodiment, based on the average value calculation of the curvatures corresponding to multiple trajectory points of any motion trajectory, the average curvature value corresponding to each motion trajectory is determined. , which is helpful to classify motion trajectories according to the average curvature.
[0104] In one embodiment, the curvature average The calculation formula is:
[0105]
[0106] in, For the m The curvature at the trajectory point, m Is a positive integer.
[0107] S215, based on the curvatures corresponding to a plurality of trajectory points of any motion trajectory, determine the curvature variance value corresponding to each motion trajectory by using a curvature variance calculation formula.
[0108] In one embodiment, based on the variance calculation of the curvatures corresponding to multiple trajectory points of any motion trajectory, the curvature variance value corresponding to each motion trajectory is determined. , which is beneficial to classify motion trajectories according to the curvature variance value.
[0109] In one embodiment, the curvature variance value The calculation formula is:
[0110]
[0111] in, is the average curvature of the motion trajectory, For the The curvature at the trajectory point, and are all positive integers, .
[0112] It should be noted that in real life, the falling trajectory of an object dropped from a high altitude is approximately a straight line. Therefore, the greater the curvature, the smaller the probability that the motion trajectory corresponding to the curvature belongs to the falling trajectory of an object dropped from a high altitude.
[0113] In one embodiment, if the curvature maximum , is the first curvature threshold, that is, the curvature of the motion trajectory is very large, so the corresponding motion trajectory is classified as a motion trajectory with a high probability of not being a high-altitude parabola. It is necessary to combine the curvature mean value and curvature variance value for further classification; if the curvature maximum value , is the second curvature threshold, , that is, the curvature of the motion trajectory is very small, and the motion trajectory is approximately a straight line. The corresponding motion trajectory is classified as the motion trajectory of a high-altitude projectile.
[0114] In one embodiment, if the curvature minimum , is the first curvature threshold, that is, the motion trajectory is particularly tortuous, and it is most likely formed by the disturbance of leaves or similar objects. Therefore, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile.
[0115] In one embodiment, if ,and , is the first curvature threshold, is the second curvature threshold, is the minimum curvature, is the maximum curvature value, and the corresponding motion trajectory is classified as the motion trajectory of a high-altitude projectile waiting for the next classification.
[0116] In one embodiment, the first curvature threshold The value range is greater than or equal to 35, the second curvature threshold The value range of is less than or equal to 5. It should be noted that, in this embodiment, the first curvature threshold and the second curvature threshold Limit the specific values and set them according to various situations of the motion trajectory.
[0117] S220, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, respectively determine the maximum speed, the minimum speed, the average speed and the speed variance value corresponding to each motion trajectory.
[0118] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the maximum speed, the minimum speed, the average speed and the speed variance value corresponding to each motion trajectory are determined respectively, including:
[0119] S221, determining a speed corresponding to each motion trajectory based on the first direction coordinate, the second direction coordinate and the timestamp corresponding to each motion trajectory.
[0120] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the speed corresponding to each motion trajectory is determined by a speed calculation formula.
[0121] In one embodiment, the speed calculation formula is:
[0122]
[0123] in, For the i The velocity at the trajectory point, i is a positive integer;
[0124] For the i The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0125] For the i+ 1 The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0126] For the i The second direction coordinate (i.e., ordinate) of the trajectory point;
[0127] For the i+ 1 The second direction coordinate of the trajectory point (i.e. the vertical coordinate);
[0128] For the i Timestamp of the trajectory point;
[0129] For the i+ 1Time stamp of the track point.
[0130] S222: Based on the speeds corresponding to a plurality of trajectory points of any motion trajectory, determine the maximum speed corresponding to each motion trajectory.
[0131] In one embodiment, based on the maximum value operation of the speeds corresponding to multiple trajectory points of any motion trajectory, the maximum speed corresponding to each motion trajectory is determined. ,It is helpful to classify the motion trajectories according to the maximum speed.
[0132] In one embodiment, the maximum speed The calculation formula is:
[0133]
[0134] in, For the m The velocity at the trajectory point, m Is a positive integer.
[0135] S223, based on the speeds corresponding to a plurality of trajectory points of any motion trajectory, determine the minimum speed corresponding to each motion trajectory.
[0136] In one embodiment, based on the minimum value operation of the speeds corresponding to multiple trajectory points of any motion trajectory, the minimum speed corresponding to each motion trajectory is determined. ,It is helpful to classify the motion trajectories according to the minimum value of the speed.
[0137] In one embodiment, the speed minimum The calculation formula is:
[0138]
[0139] in, For the m The velocity at the trajectory point, m Is a positive integer.
[0140] S224, based on the speeds corresponding to a plurality of trajectory points of any motion trajectory, determine an average speed value corresponding to each motion trajectory.
[0141] In one embodiment, based on the average calculation of the speeds corresponding to multiple trajectory points of any motion trajectory, the average speed corresponding to each motion trajectory is determined. ,It is helpful to classify the motion trajectories according to the average speed.
[0142] In one embodiment, the speed average The calculation formula is:
[0143]
[0144] in, For the m The velocity at the trajectory point, m Is a positive integer.
[0145] S225, based on the speeds corresponding to a plurality of trajectory points of any motion trajectory, determine the speed variance value corresponding to each motion trajectory.
[0146] In one embodiment, based on the mean difference calculation of the speeds corresponding to multiple trajectory points of any motion trajectory, the speed variance value corresponding to each motion trajectory is determined, which is conducive to classifying the motion trajectory according to the speed variance value.
[0147] In one embodiment, the speed variance value The calculation formula is:
[0148]
[0149] in, is the average velocity of the motion trajectory, For the The velocity at the trajectory point, and are all positive integers, .
[0150] It can be understood that the motion trajectory of a high-altitude object can be approximated as a free-falling motion trajectory, which is approximately uniformly accelerated linear motion. The speed of the target moving object accelerates from 0 until it reaches the maximum value before landing. The maximum speed is determined based on the floor falling, so the motion trajectory can be classified by the speed value of each trajectory point of the motion trajectory.
[0151] In one embodiment, if the maximum speed , is the first speed threshold, that is, the speed of the target moving object is very small, so the corresponding motion trajectory is classified as a motion trajectory with a high probability not being a high-altitude projectile, for example, the target moving object is a slowly falling leaf or paper.
[0152] In one embodiment, if the speed minimum , is the second speed threshold, , that is, the speed of the target moving object is particularly large, so the corresponding motion trajectory is classified as a motion trajectory with a high probability not being a high-altitude projectile, for example, the target moving object is a bird flying fast.
[0153] In one embodiment, if the speed average , is the first speed threshold, that is, the speed of the target moving object is very small, so the corresponding motion trajectory is classified as a motion trajectory with a high probability not being a high-altitude projectile.
[0154] In one embodiment, if the speed variance value , is the third speed threshold, That is, the speed of the target moving object changes very quickly, and it is not a uniformly accelerated motion. Therefore, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile. For example, the target moving object is a high-speed flying bird that suddenly stops on the window.
[0155] In one embodiment, the first speed threshold 5. Second speed threshold , the third speed threshold The value range is It should be noted that, in this embodiment, the first speed threshold , Second speed threshold and the third speed threshold Limit the specific values and set them according to various situations of the motion trajectory.
[0156] S230, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, respectively determine the maximum acceleration value, the minimum acceleration value, the average acceleration value and the acceleration variance value corresponding to each motion trajectory.
[0157] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the maximum acceleration value, the minimum acceleration value, the average acceleration value and the acceleration variance value corresponding to each motion trajectory are determined respectively, including:
[0158] S231, determining the acceleration corresponding to each motion trajectory based on the first direction coordinate, the second direction coordinate and the timestamp corresponding to each motion trajectory.
[0159] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the acceleration corresponding to each motion trajectory is determined by an acceleration calculation formula, which is conducive to classifying the motion trajectory by acceleration.
[0160] In one embodiment, the acceleration calculation formula is:
[0161]
[0162] in, For the i The acceleration at the trajectory point, i is a positive integer;
[0163] For the i The velocity at the trajectory point;
[0164] For the i+1 The velocity at the trajectory point;
[0165] For the i Timestamp of the trajectory point;
[0166] For the i+ 1Time stamp of the track point.
[0167] S232, based on the accelerations corresponding to multiple trajectory points of any motion trajectory, determine the maximum acceleration corresponding to each motion trajectory.
[0168] In one embodiment, based on the accelerations corresponding to multiple trajectory points of any motion trajectory, the maximum acceleration corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectory by the maximum acceleration.
[0169] In one embodiment, the maximum acceleration The calculation formula is:
[0170]
[0171] in, For the m The acceleration at the trajectory point, m Is a positive integer.
[0172] S233, based on the accelerations corresponding to a plurality of trajectory points of any motion trajectory, determine the minimum acceleration corresponding to each motion trajectory.
[0173] In one embodiment, based on the accelerations corresponding to multiple trajectory points of any motion trajectory, the minimum acceleration corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectory by the minimum acceleration value.
[0174] In one embodiment, the minimum acceleration The calculation formula is:
[0175]
[0176] in, For the m The acceleration at the trajectory point, m Is a positive integer.
[0177] S234, based on the accelerations corresponding to a plurality of trajectory points of any motion trajectory, determine an average value of the accelerations corresponding to each motion trajectory.
[0178] In one embodiment, based on the accelerations corresponding to multiple trajectory points of any motion trajectory, the average acceleration corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectory by the average acceleration.
[0179] In one embodiment, the acceleration average The calculation formula is:
[0180]
[0181] in, For the m The acceleration at the trajectory point, m Is a positive integer.
[0182] S235, based on the accelerations corresponding to a plurality of trajectory points of any motion trajectory, determine the acceleration variance value corresponding to each motion trajectory.
[0183] In one embodiment, based on the accelerations corresponding to multiple trajectory points of any motion trajectory, the acceleration variance value corresponding to each motion trajectory is determined. , which is helpful to classify the motion trajectory by the acceleration variance value.
[0184] In one embodiment, the acceleration variance value The calculation formula is:
[0185]
[0186] in, is the average acceleration of the motion trajectory, For the The acceleration at the trajectory point, and are all positive integers, .
[0187] It is understandable that, since the motion trajectory of a high-altitude projectile is similar to free fall motion, the acceleration of each trajectory point on the motion trajectory fluctuates within a certain range.
[0188] In one embodiment, if the maximum acceleration With minimum acceleration The first difference, the maximum acceleration The average acceleration The second difference and the minimum acceleration The average acceleration The third difference is greater than or equal to 30, that is, the amplitude of the acceleration fluctuation is too large, and the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile.
[0189] In one embodiment, if the acceleration variance value If it is greater than or equal to 100, that is, the acceleration fluctuation of each trajectory point is too large, the corresponding motion trajectory is classified as a motion trajectory with a high probability not being a high-altitude projectile.
[0190] S240, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, respectively determine the displacement, the distance and the distance-displacement difference corresponding to each motion trajectory.
[0191] In one embodiment, based on the first direction coordinates, second direction coordinates and timestamps corresponding to each motion trajectory, the displacement, distance and distance-displacement difference corresponding to each motion trajectory are determined respectively, which is conducive to classifying the motion trajectory according to the displacement, distance and distance-displacement difference.
[0192] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the displacement, the distance and the distance-displacement difference corresponding to each motion trajectory are determined respectively, including:
[0193] S241, determining the displacement corresponding to each motion trajectory based on the first direction coordinate, the second direction coordinate and the timestamp corresponding to each motion trajectory.
[0194] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the displacement corresponding to each motion trajectory is determined by a displacement calculation formula.
[0195] In one embodiment, the displacement calculation formula is:
[0196]
[0197] in, is the displacement between the starting point and the end point of the trajectory;
[0198] is the first direction coordinate (i.e. horizontal coordinate) of the starting point of the trajectory (i.e. the first trajectory point);
[0199] is the end point of the trajectory (i.e. m The first direction coordinate (i.e., horizontal coordinate) of the trajectory point);
[0200] is the second direction coordinate (i.e., ordinate) of the starting point of the trajectory (i.e., the first trajectory point);
[0201] is the end point of the trajectory (i.e. m The second direction coordinate (i.e., the vertical coordinate) of the trajectory point.
[0202] S242, determining the distance corresponding to each motion trajectory based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory.
[0203] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the displacement corresponding to each motion trajectory is determined by a distance calculation formula.
[0204]
[0205] in, is the distance between the starting point and the end point of the track;
[0206] is the first direction coordinate (i.e. horizontal coordinate) of the first trajectory point (i.e. the starting point of the trajectory);
[0207] is the first direction coordinate (i.e. horizontal coordinate) of the second trajectory point;
[0208] is the first direction coordinate (i.e. horizontal coordinate) of the third trajectory point;
[0209] For the m The first direction coordinate (i.e. horizontal coordinate) of the trajectory point (i.e. the end point of the trajectory);
[0210] is the second direction coordinate (i.e., ordinate) of the first trajectory point (i.e., the starting point of the trajectory);
[0211] is the second direction coordinate (i.e., ordinate) of the second trajectory point;
[0212] is the second direction coordinate (i.e., ordinate) of the third trajectory point;
[0213] For the m The second direction coordinate (i.e., the vertical coordinate) of the trajectory point (i.e., the end point of the trajectory).
[0214] S243, based on the distance and displacement corresponding to each motion trajectory, determine the distance-displacement difference corresponding to each motion trajectory.
[0215] In one embodiment, the distance-displacement difference corresponding to each motion trajectory is determined based on the difference between the distance and the displacement corresponding to each motion trajectory.
[0216] In one embodiment, the calculation formula for the distance displacement difference is:
[0217]
[0218] in, is the distance displacement difference; is the distance between the starting point and the end point of the track; is the displacement between the starting point and the end point of the trajectory.
[0219] It is understandable that the trajectory of a target object dropped from a high altitude will gradually tend to be a straight line, so the distance and displacement of the trajectory are not much different. However, the irregular trajectories of some non-dropped objects, such as the swaying of leaves, are often circling in place. Therefore, although the distance of such trajectories is long, the displacement is short, which can help determine whether the trajectory is the trajectory of a target object dropped from a high altitude.
[0220] In one embodiment, the distance displacement difference is less than or equal to a distance displacement difference threshold.
[0221] In one embodiment, the distance displacement difference threshold is 10.
[0222] S250 , based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, respectively determine the trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory.
[0223] In one embodiment, based on the first direction coordinates, second direction coordinates and timestamps corresponding to each motion trajectory, the trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively, which is conducive to classifying the motion trajectory according to the trajectory slope, trajectory duration, number of trajectory points and trajectory height.
[0224] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the trajectory slope, trajectory duration, number of trajectory points and trajectory height corresponding to each motion trajectory are determined respectively, including:
[0225] S251, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, determine the trajectory slope corresponding to each motion trajectory by using a trajectory slope calculation formula.
[0226] In one embodiment, the trajectory slope calculation formula is:
[0227]
[0228] in, For the i The trajectory slope of the trajectory point;
[0229] For the i The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0230] For the i+ 1 The first direction coordinate of the trajectory point (i.e. the horizontal coordinate);
[0231] For the i The second direction coordinate (i.e., ordinate) of the trajectory point;
[0232] For the i+ 1 The second direction coordinate (i.e., the vertical coordinate) of the trajectory point.
[0233] It should be noted that the trajectory of a high-altitude object will gradually approach a straight line during the falling process, so the trajectory slope between each trajectory point tends to be consistent and can be used to classify the trajectory. In addition, the positive or negative value of the trajectory slope represents the direction of the trajectory.
[0234] In one embodiment, if the number of times the positive and negative values of the trajectory slope appear alternately is greater than or equal to the preset number of fluctuations, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude parabola; if the number of times the positive and negative values of the trajectory slope appear alternately is less than the preset number of fluctuations, the corresponding motion trajectory is classified as a motion trajectory that is most likely a high-altitude parabola.
[0235] In one embodiment, the preset fluctuation number ranges from less than or equal to 3.
[0236] S252, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, determine the trajectory duration corresponding to each motion trajectory by using a trajectory duration calculation formula.
[0237] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the trajectory duration corresponding to each motion trajectory is determined by a trajectory duration calculation formula, which is conducive to classifying the motion trajectory by trajectory duration.
[0238] In one embodiment, the trajectory duration calculation formula is:
[0239]
[0240] in, is the trajectory duration;
[0241] For the 1 The timestamp of the trajectory point (i.e. the starting point of the trajectory);
[0242] For the m The timestamp of the trajectory point (i.e. the end point of the trajectory).
[0243] In one embodiment, the value range of the track duration is any value between 0.8 seconds and 2.2 seconds. It should be noted that in this embodiment, the value range of the track duration is not specifically limited and is set according to different scenarios. For example, the value range of the track duration can also be less than or equal to 5 seconds.
[0244] S253, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, determine the trajectory height corresponding to each motion trajectory by using a trajectory height calculation formula.
[0245] In one embodiment, based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each motion trajectory, the trajectory height corresponding to each motion trajectory is determined by a trajectory height calculation formula, which is conducive to classifying the motion trajectory by trajectory height.
[0246] It is understandable that since high-altitude objects will eventually fall to the ground, the height between the end point of the trajectory and the ground is close to 0. is the height between the end point of the motion trajectory and the ground.
[0247] In one embodiment, the trajectory height calculation formula is:
[0248]
[0249] in, For the m The trajectory height of the trajectory point (i.e. the end point of the trajectory); For the m The second direction coordinate (i.e., the vertical coordinate) of the trajectory point (i.e., the end point of the trajectory).
[0250] In one embodiment, if the trajectory height 300, classify the corresponding motion trajectory as a motion trajectory that is highly likely not a high-altitude projectile.
[0251] In one embodiment, if the value range of the number of trajectory points m is any value between 10 and 60, the corresponding motion trajectory is classified as a motion trajectory with a high probability of being a high-altitude projectile. It should be noted that in this embodiment, the number of trajectory points is not limited to a specific value, and is specifically set according to the needs of each scene. For example, the value range of the number of trajectory points m can also be less than or equal to 100.
[0252] S300, based on the trajectory determination parameters of each motion trajectory, determine the trajectory prediction result of any motion trajectory through a preset machine learning model.
[0253] In one embodiment, based on the trajectory determination parameters of each motion trajectory, a trajectory prediction result of any motion trajectory is determined by a preset machine learning model, thereby improving the accuracy of the trajectory prediction result in classifying the motion trajectory.
[0254] It should be noted that the data set of trajectory point parameters of multiple motion trajectories is N m×3-dimensional matrices. The trajectory judgment parameters corresponding to any motion trajectory are obtained according to the trajectory point parameters of each motion trajectory. Then, the N m×3-dimensional matrices form an N×19-dimensional matrix data set, where N is the number of motion trajectories, and m is the number of trajectory points in any motion trajectory.
[0255] In one embodiment, Figure 3 As shown, based on the trajectory determination parameters of each motion trajectory, the trajectory prediction result of any motion trajectory is determined by a preset machine learning model, including:
[0256] S310, determining a trajectory determination parameter training set and a trajectory determination parameter test set based on the trajectory determination parameters of each motion trajectory.
[0257] In one embodiment, the trajectory determination parameters of each motion trajectory are an N×19-dimensional matrix data set, and the N×19-dimensional matrix data set is divided into a training set and a test set according to a preset ratio to facilitate training a preset machine learning model.
[0258] In one embodiment, the preset ratio is 8:2, that is, 80% of the N×19-dimensional matrix data set is a training set, and 20% of the N×19-dimensional matrix data set is a test set. Each motion trajectory in the training set will be manually identified and labeled, for example, 1 is used to represent the real motion trajectory of high-altitude projectiles, and 0 is used to represent the unreal motion trajectory of high-altitude projectiles.
[0259] In one embodiment, the preset machine learning model is a lightweight gradient boosting machine learning model, namely, a LightGBM model, which is a decision tree model based on a histogram algorithm.
[0260] S320: Based on the trajectory determination parameter training set and the trajectory determination parameter test set, train the preset machine learning model to obtain a trained preset machine learning model.
[0261] In one embodiment, based on the trajectory judgment parameter training set and the trajectory judgment parameter test set, the preset machine learning model is trained by sorting the values of each judgment parameter of all trajectory points of any motion trajectory, and then discretizing the continuous floating-point eigenvalues corresponding to the 19 judgment parameters into integers of a preset interval number, and inputting the integers of the preset interval number into the decision tree model for training until the requirements are met, thereby obtaining a trained preset machine learning model.
[0262] In one embodiment, the number of preset intervals is less than or equal to 256.
[0263] In one embodiment, the motion trajectory category of a real high-altitude parachute is predicted to be 1, the trajectory prediction result of the first decision tree is 0.6, and an error of 0.4 is found. Then the training target of the second decision tree is 0.4, and the trajectory prediction result of the second decision tree is 0.3. The error of 0.1 is handed over to the third decision tree, and so on. Each subsequent decision tree is used to predict the errors of all previous decision trees. Finally, the sum of the trajectory prediction results of all decision trees is the final trajectory prediction result.
[0264] S330, based on the trajectory determination parameters of each motion trajectory, determine the trajectory prediction result of any motion trajectory through a trained preset machine learning model.
[0265] It should be noted that the trajectory prediction result of the preset machine learning model is a floating point number between 0 and 1. The larger the value of the trajectory prediction result, the greater the probability that it is the motion trajectory of a real high-altitude projectile. Conversely, the larger the value of the trajectory prediction result, the smaller the probability that it is the motion trajectory of a real high-altitude projectile.
[0266] In one embodiment, Figure 4 As shown, based on the trajectory determination parameters of each motion trajectory, the trajectory prediction result of any motion trajectory is determined by a trained preset machine learning model, including:
[0267] S331, based on the continuous trajectory determination parameters corresponding to each motion trajectory, determine a first preset number of intervals through a trained preset machine learning model.
[0268] In one embodiment, based on the continuous trajectory judgment parameters corresponding to each motion trajectory, the value of each judgment parameter of all trajectory points of any sorted motion trajectory is determined by a trained preset machine learning model to determine a first preset number of intervals, so as to count the number of values of the judgment parameter falling into each interval.
[0269] In one embodiment, the first preset number is less than or equal to 256.
[0270] S332: Based on the trajectory determination parameter corresponding to any motion trajectory and a first preset number of intervals, determine a first preset number of histograms and statistical values of the trajectory determination parameters corresponding to each histogram.
[0271] In one embodiment, based on the trajectory judgment parameters corresponding to any motion trajectory and a first preset number of intervals, the number of values of each judgment parameter of the trajectory points of any motion trajectory that fall into each interval is counted, and the statistical values of the trajectory judgment parameters corresponding to each interval are formed into a histogram, and each judgment parameter forms a first preset number of histograms.
[0272] S333, based on the statistical values of the trajectory determination parameters corresponding to each histogram, determine the trajectory prediction result of any motion trajectory through a second preset number of decision trees of the trained preset machine learning model.
[0273] In one embodiment, based on the statistical values of the trajectory judgment parameters corresponding to each histogram, a trained preset machine learning model is input, and any motion trajectory is classified according to the judgment conditions set by each trajectory judgment parameter, and then a second preset number of decision trees formed by the trajectory judgment parameters are used to predict any motion trajectory to determine the trajectory prediction result of any motion trajectory.
[0274] In one embodiment, for any motion trajectory, the trajectory prediction result of the first decision tree is 0.6, the trajectory prediction result of the second decision tree is 0.3, the trajectory prediction result of the third decision tree is 0.05, and the sum of the trajectory prediction results of all decision trees is 0.95, which is the final trajectory prediction result.
[0275] In one embodiment, the second preset number of the decision tree is the maximum depth of the decision tree. In order to avoid overfitting of high-altitude parabolic objects, the value range of the second preset number is 3 to 5.
[0276] In one embodiment, in order to further reduce the operation time and improve the response speed, the second preset number is 4.
[0277] S400: If the trajectory prediction result meets the preset conditions, it is determined that the target moving object corresponding to the motion trajectory is a high-altitude parabolic object.
[0278] It can be understood that since the motion trajectory of a real high-altitude object is 1 and the motion trajectory of an unreal high-altitude object is 0, after the prediction of multiple decision trees, the confidence interval of the trajectory prediction result of any motion trajectory is [0,1]. The higher the confidence, the greater the probability that the motion trajectory is judged to be the motion trajectory of a real high-altitude object, and the lower the confidence, the smaller the probability that the motion trajectory is judged to be the motion trajectory of an unreal high-altitude object.
[0279] In one embodiment, the preset condition is that the confidence of the trajectory prediction result is greater than or equal to 0.5, that is, if the confidence is greater than or equal to 0.5, the motion trajectory is judged to be a real motion trajectory of a high-altitude projectile, and if the confidence is less than 0.5, the motion trajectory is judged to be an unreal motion trajectory of a high-altitude projectile.
[0280] After adopting the high-altitude object detection method of this embodiment, the accuracy of the movement trajectory of high-altitude objects is improved to more than 80%, and the false detection rate of the movement trajectory of high-altitude objects is reduced by 97%, which reduces the calculation time, improves the detection efficiency, and thus improves the management efficiency and reduces the management cost of high-altitude objects.
[0281] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0282] Compared with the prior art, the present embodiment has the following beneficial effects:
[0283] By obtaining trajectory point parameters and the number of trajectory points of multiple motion trajectories, wherein the motion trajectory is the falling trajectory of the target moving object; based on the trajectory point parameters corresponding to each motion trajectory, the trajectory judgment parameters corresponding to each motion trajectory are determined respectively; based on the trajectory judgment parameters of each motion trajectory, the trajectory prediction result of any motion trajectory is determined through a preset machine learning model; if the trajectory prediction result meets the preset conditions, the target moving object corresponding to the motion trajectory is determined to be a high-altitude parabola. Compared with the detection method of the prior art, since the trajectory judgment parameters corresponding to each motion trajectory are determined respectively for the falling trajectory of the target moving object, the trajectory judgment parameters are used to improve the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and each motion trajectory is predicted through a preset machine learning model according to the trajectory judgment parameters, and the prediction result must meet the preset conditions to determine that the target moving object corresponding to the motion trajectory is a high-altitude parabola, thereby further improving the accuracy of determining each motion trajectory as a high-altitude parabola trajectory, and then improving the accuracy of the target object of the motion trajectory as a high-altitude parabola.
[0284] Second, as Figure 5 As shown, this embodiment provides a device for detecting objects thrown from a high altitude, comprising:
[0285] An acquisition module 100 is used to acquire trajectory point parameters of a plurality of motion trajectories, wherein the motion trajectory is a falling trajectory of a target moving object;
[0286] A first determination module 200 is used to determine the trajectory determination parameters corresponding to each motion trajectory based on the trajectory point parameters corresponding to each motion trajectory;
[0287] A second determination module 300 is used to determine the trajectory prediction result of any motion trajectory through a preset machine learning model based on the trajectory determination parameters of each motion trajectory;
[0288] The third determination module 400 is used to determine that the target moving object corresponding to the motion trajectory is a high-altitude parabolic object if the trajectory prediction result meets a preset condition.
[0289] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0290] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0291] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a method as described in any one of the contents of the first aspect above.
[0292] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the contents of the first aspect above is implemented.
[0293] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the terminal device to execute any of the methods described in the first aspect above.
[0294] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0295] The method for detecting objects dropped from high places provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0296] 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 present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by a processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0297] The computer-readable medium may include at least: any entity or device capable of carrying computer program codes to a camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0298] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0299] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0300] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0301] 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.
[0302] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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, and should all be included in the protection scope of the present application.
Claims
1. A method for detecting objects thrown from high altitude, characterized in that: include: Acquire trajectory point parameters of multiple motion trajectories, wherein the motion trajectory is a falling trajectory of a target moving object; the trajectory point parameters include first direction coordinates, second direction coordinates and a timestamp, and the first direction is perpendicular to the second direction; trajectory determination parameters include curvature parameters, speed parameters, acceleration parameters, distance parameters, trajectory slope, trajectory duration, number of trajectory points and trajectory height; Based on the trajectory point parameters corresponding to each of the motion trajectories, trajectory determination parameters corresponding to each of the motion trajectories are determined respectively, including: based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, the curvature parameters, the speed parameters, the acceleration parameters, the distance parameters, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each of the motion trajectories are determined respectively; the curvature parameters include a maximum curvature value, a minimum curvature value, an average curvature value and a curvature variance value, the speed parameters include a maximum speed value, a minimum speed value, an average speed value and a speed variance value, the acceleration parameters include a maximum acceleration value, a minimum acceleration value, an average acceleration value and an acceleration variance value, and the distance parameters include a displacement, a distance and a distance-displacement difference; The curvature is characterized by the numerical value of the bending degree of the motion trajectory at any trajectory point. The larger the curvature, the smaller the probability that the motion trajectory corresponding to the curvature belongs to the falling trajectory of an object dropped from a high altitude; if the maximum curvature value is greater than or equal to the first curvature threshold, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a motion trajectory of an object dropped from a high altitude, and the classification is required to be combined with the curvature average value and the curvature variance value; if the maximum curvature value is less than the second curvature threshold, the corresponding motion trajectory is classified as a motion trajectory of an object dropped from a high altitude; if the minimum curvature value is greater than or equal to the first curvature threshold, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a motion trajectory of an object dropped from a high altitude; if the minimum curvature value is less than the first curvature threshold, and the second curvature threshold is less than or equal to the maximum curvature threshold, and the maximum curvature value is less than or equal to the first curvature threshold, the corresponding motion trajectory is classified as a motion trajectory of an object dropped from a high altitude waiting for the next classification; If the maximum speed value is less than or equal to the first speed threshold, the corresponding motion trajectory is classified as a motion trajectory that is highly likely not a high-altitude throwing object; if the minimum speed value is greater than or equal to the second speed threshold, the corresponding motion trajectory is classified as a motion trajectory that is highly likely not a high-altitude throwing object; if the average speed value is less than or equal to the first speed threshold, the corresponding motion trajectory is classified as a motion trajectory that is highly likely not a high-altitude throwing object; if the speed variance value is greater than or equal to the third speed threshold, the first speed threshold is less than the third speed threshold, and the third speed threshold is less than the second speed threshold, the corresponding motion trajectory is classified as a motion trajectory that is highly likely not a high-altitude throwing object; If the first difference between the maximum acceleration and the minimum acceleration, the second difference between the maximum acceleration and the average acceleration, and the third difference between the minimum acceleration and the average acceleration are all greater than or equal to 30, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile; if the acceleration variance value is greater than or equal to 100, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile; The positive or negative value of the trajectory slope represents the direction of the motion trajectory; if the number of times the positive and negative values of the trajectory slope appear alternately is greater than or equal to the preset number of fluctuations, the corresponding motion trajectory is classified as a motion trajectory that is most likely not a high-altitude projectile; if the number of times the positive and negative values of the trajectory slope appear alternately is less than the preset number of fluctuations, the corresponding motion trajectory is classified as a motion trajectory that is most likely a high-altitude projectile; If the trajectory height is greater than or equal to 300, the corresponding motion trajectory is classified as a motion trajectory that is highly likely not a high-altitude projectile; Based on the trajectory determination parameters of each of the motion trajectories, determining a trajectory prediction result of any of the motion trajectories through a preset machine learning model; If the trajectory prediction result meets the preset conditions, it is determined that the target moving object corresponding to the motion trajectory is a high-altitude parabolic object.
2. The method according to claim 1, characterized in that The method of determining the curvature parameter, the speed parameter, the acceleration parameter, the distance parameter, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each motion trajectory based on the first direction coordinate, the second direction coordinate and the timestamp corresponding to each motion trajectory respectively includes: Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum curvature, the minimum curvature, the average curvature and the curvature variance value corresponding to each of the motion trajectories; Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum speed value, the minimum speed value, the average speed value and the speed variance value corresponding to each of the motion trajectories; Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the maximum acceleration value, the minimum acceleration value, the average acceleration value and the acceleration variance value corresponding to each of the motion trajectories; Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, respectively determine the displacement, the distance and the distance-displacement difference corresponding to each of the motion trajectories; Based on the first direction coordinates, the second direction coordinates and the timestamp corresponding to each of the motion trajectories, the trajectory slope, the trajectory duration, the number of trajectory points and the trajectory height corresponding to each of the motion trajectories are respectively determined.
3. The method according to claim 1, characterized in that The trajectory determination parameters based on each of the motion trajectories, and determining a trajectory prediction result of any of the motion trajectories through a preset machine learning model, include: Based on the trajectory determination parameters of each of the motion trajectories, determining a trajectory determination parameter training set and a trajectory determination parameter test set; Based on the trajectory determination parameter training set and the trajectory determination parameter test set, training the preset machine learning model to obtain the trained preset machine learning model; Based on the trajectory determination parameters of each of the motion trajectories, the trajectory prediction result of any of the motion trajectories is determined by using the trained preset machine learning model.
4. The method according to claim 3, characterized in that The preset machine learning model is a lightweight gradient boosting machine learning model; The trajectory determination parameter based on each of the motion trajectories, and determining the trajectory prediction result of any of the motion trajectories through the trained preset machine learning model, includes: Based on the continuous trajectory determination parameters corresponding to each of the motion trajectories, determining a first preset number of intervals through the trained preset machine learning model; Based on the trajectory determination parameter corresponding to any of the motion trajectories and the first preset number of intervals, determining the first preset number of histograms and statistical values of the trajectory determination parameter corresponding to each of the histograms; Based on the statistical values of the trajectory determination parameters corresponding to each of the histograms, the trajectory prediction result of any of the motion trajectories is determined by using a second preset number of decision trees of the trained preset machine learning model.
5. The method according to claim 4, characterized in that The first preset number is less than or equal to 256; The second preset number ranges from 3 to 5.
6. The method according to any one of claims 1 to 4, characterized in that The preset condition is that the confidence of the trajectory prediction result is greater than or equal to 0.
5.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
