A radar point trace clustering method, clustering device, clustering equipment and computer-readable storage medium
By setting the first threshold and the second threshold in the radar point trace clustering, the dual clustering method solves the problem of radar angular resolution loss, improves the radar's resolution performance, and ensures the accurate clustering of radar target point clouds. .
Patent Information
- Application Number
- CN202210350976.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-04-02
AI Technical Summary
Existing radar point clustering algorithms such as DBSCAN cause the loss of radar angular resolution during the clustering process and cannot effectively distinguish overlapping target point clouds.
The two clustering methods are used to iteratively update the radar point traces and update the class list by setting the first threshold ∈ 1 and the second threshold ∈ 2 to ensure that the radar angular resolution is maintained.
It effectively solves the problem of reduced radar angular resolution, improves the resolution performance of radar products, and avoids splitting and merging errors of radar target point clouds.
Smart Images

Figure CN114638319B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of millimeter radar wave applications, and in particular to a radar point clustering method, a clustering device and a computer-readable storage medium. Background Art
[0002] Radar angular resolution is an important indicator for improving radar performance. However, in order to prevent the radar target's track from splitting, it is necessary to use a clustering algorithm to condense the points of the same target into one point. The clustering process will inevitably cause the radar's angular resolution to be lost. The currently widely used density-based clustering algorithm (DBSCAN, Density-Based Spatial Clustering of Applications with Noise) has this problem.
[0003] DBSCAN is based on a set of neighborhoods to describe the compactness of the sample set, and the parameter (∈, MinPts) is used to describe the compactness of the sample distribution in the neighborhood. Among them, ∈ describes the neighborhood distance threshold of a certain sample, and MinPts describes the threshold of the number of samples in the neighborhood of a certain sample with a distance of ∈.
[0004] Assuming that the sample set is D = (x1, x2, ..., xm), the specific density description of DBSCAN is defined as follows:
[0005] 1) ∈-neighborhood: For xj∈D, its ∈-neighborhood contains the sub-sample set in the sample set D whose distance from xj is not greater than ∈, that is, N∈(xj)={xi∈D|distance(xi,xj)≤∈}, and the number of this sub-sample set is recorded as |N∈(xj)|
[0006] 2) Core object: For any sample xj∈D, if its ∈-neighborhood corresponding to N∈(xj) contains at least MinPts samples, that is, if |N∈(xj)|≥MinPts, then xj is a core object.
[0007] 3) Density direct access: If xi is in the ∈-neighborhood of xj, and xj is a core object, then xi is said to be density-directly accessible from xj. Note that the opposite is not necessarily true, that is, in this case, xj cannot be said to be density-directly accessible from xi, unless xi is also a core object.
[0008] 4) Density reachable: For xi and xj, if there exists a sample sequence p1, p2, ..., pT, satisfying p1 = xi, pT = xj, and pt+1 is directly accessible from pt, then xj is said to be density reachable from xi. In other words, density reachability satisfies transitivity. At this time, the transitive samples p1, p2, ..., pT-1 in the sequence are all core objects, because only core objects can make other samples density reachable. Note that density reachability does not satisfy symmetry either, which can be derived from the asymmetry of density direct accessibility.
[0009] 5) Density connection: For xi and xj, if there exists a core object sample xk such that both xi and xj are density-reachable by xk, then xi and xj are said to be density-connected. Note that the density connection relationship satisfies symmetry.
[0010] Figure 1 This is a schematic diagram of using DBSCAN to process radar traces in the prior art. As shown in the figure, MinPts = 5, and the ∈-neighborhood of the core object has at least 5 trace samples. All samples that are directly accessible to the core object are within the hypersphere centered on the core object. If they are not within the hypersphere, they cannot be directly accessible to the core object. The core objects connected by arrows in the figure form a sequence of samples that are accessible to the core object. All samples in the ∈-neighborhood of these sequences of samples that are accessible to the core object are density-connected to each other.
[0011] Figure 2 A schematic diagram of a trace sample that has not been processed by DBSCAN is shown. Figure 3 yes Figure 2 Schematic diagram of a point sample processed by DBSCAN. Figure 2 , the distance between radar strong reflection point A and point B is relatively close, and the point clouds of the two overlap each other. If the DBSCAN method is used, according to its principle, reference Figure 3 , all samples with direct density access to the core object are within the hypersphere centered on the core object, making the radar strong reflection traces A and B mutually accessible and thus clustered into one point. Therefore, the disadvantage of using the DBSCAN method is that as long as the density of the strong reflection sample points is accessible, they will be density-connected, and the target points with overlapping part of their point clouds cannot be distinguished, resulting in the loss of the radar's angular resolution. Summary of the invention
[0012] In view of the above problems in the prior art, the present invention proposes a radar point clustering method, a clustering device, a clustering equipment and a computer-readable storage medium, which solve the problem of reduced radar angular resolution.
[0013] Specifically, the present invention proposes a radar point trace clustering method, comprising the steps of:
[0014] S1, establish the total set of points M;
[0015] S2, traverse the total set of points M. If the traversal is completed, go to step S5; if not, randomly select a point D that has not been traversed in the total set of points M, make the point D the center C, and go to step S3 to generate the target class this time;
[0016] S3, the first clustering, iterative update center C, the iterative process includes:
[0017] S31, finding all the traces in the trace total set M whose deviation from the center C is less than a preset first threshold ∈1, and establishing a trace set N;
[0018] S32, solving the centroid c of the point trace set N;
[0019] S33, determining whether the centroid c has drifted relative to the center C. If so, the center C is updated with the centroid c, and the process returns to step S31. If not, the process proceeds to step S4.
[0020] S4, second clustering, using the center C to update the class list L, the class list L contains the generated target class, the updating process includes:
[0021] Calculate the deviation between the center C and the target class, and determine whether the deviation is less than a preset second threshold ∈2; if the deviation is less than the second threshold ∈2, compare the characteristic attributes of the center C and the target class; determine whether to replace the target class with the center C or add the center C as a new target class to the class list L according to the deviation judgment result and the characteristic attribute comparison result; return to step S2;
[0022] S5, end.
[0023] According to one embodiment of the present invention, in step S1, the attributes of each point in the point set M include distance, speed, angle and amplitude value; the size of the first threshold ∈1 is set according to the standard deviation of the distance, speed and angle of the point, and the size of the second threshold ∈2 is set according to the distance span, speed standard deviation and angle span of the point.
[0024] According to one embodiment of the present invention, the first threshold ∈1 is smaller than the second threshold ∈2.
[0025] According to one embodiment of the present invention, in step S2, let point trace D = (R, V, A, AM), where R is distance, V is speed, A is angle, and AM is amplitude value; let point trace D be center C, then center C = (R, V, A, AM);
[0026] In step S31, all point trace sets Nj whose deviation from the center C is less than the first threshold ∈1 are found, and the point trace set Nj is a subset of the point trace set N;
[0027] In step S32, let the i-th point in the point set Nj be Dji=(Rji, Vji, Aji, AMji); the deviation between the point Dji and the center C is: distance deviation ΔR=abs(R-Rji), speed deviation ΔV=abs(V-Vji), angle deviation ΔA=abs(A-Aji); find the maximum amplitude value Amaxj of the point in the point set Nj;
[0028] The centroid
[0029] According to an embodiment of the present invention, in step S33, judging whether the centroid c drifts relative to the center C includes: comparing the amplitude values of the centroid c and the center C or comparing the centroid density of the point trace set directly reached by the centroid c and the center C;
[0030] If the amplitude value of the centroid c or the centroid density of the point trace set directly reached by the density is greater than the amplitude value of the center C or the centroid density of the corresponding point trace set, the center C is updated with the centroid c and the process returns to step S31. If not, the process proceeds to step S4.
[0031] According to an embodiment of the present invention, in step S4, the characteristic attribute is the centroid density of the point trace set directly reached by the amplitude value or density.
[0032] According to one embodiment of the present invention, step S4 includes:
[0033] Traverse the target class of the class list L;
[0034] Obtain the target class in the class list L whose deviation from the center C is less than the second threshold ∈2;
[0035] Compare the characteristic attributes of the center C and the target class. If the characteristic attributes of the center C are greater than the characteristic attributes of the target class, replace the target class with the center C; if the characteristic attributes of the center C are not greater than the characteristic attributes of the target class, delete or discard the center C;
[0036] Return to step S2;
[0037] Alternatively, step S4 comprises:
[0038] Traverse the target class of the class list L;
[0039] Obtain all target classes in the class list L whose deviation from the center C is less than the second threshold ∈2, and if the characteristic attributes of the center C are all greater than the characteristic attributes of the target class, replace the target class with the smallest deviation from the center C among all the target classes found with the center C;
[0040] Return to step S2;
[0041] Alternatively, step S4 comprises:
[0042] Traverse the target class of the class list L;
[0043] If the deviations between the target class and the center C are not less than a second threshold ∈2, the center C is added to the class list L as a new target class;
[0044] Return to step S2;
[0045] Or, in step S4, if the class list L is an empty set, the center C is added to the class list L as a new target class, and the process returns to step S2.
[0046] The present invention also provides a radar point trace clustering device for implementing the aforementioned clustering method, the clustering device comprising:
[0047] A preset unit, used for establishing the total set M of point traces and setting the first threshold ∈1 and the second threshold ∈2;
[0048] A selection unit selects a point D from the total set of point traces M that has not been traversed, and makes the point trace D the center C;
[0049] The first clustering unit, used for iteratively updating the center C, includes:
[0050] A search module, used to search for all the points in the total point set M whose deviation from the center C is less than a preset first threshold ∈1, and establish the point set N;
[0051] A first calculation module is used to solve the centroid c of the point trace set N;
[0052] A first judgment module is used to judge whether the centroid c drifts relative to the center C;
[0053] A first updating module replaces the center C with the centroid c;
[0054] The second clustering unit updates the class list L with the center C, including:
[0055] A second calculation module, used to calculate the deviation between the center C and the target class;
[0056] A second judgment module, used to judge whether the deviation calculated by the second calculation module is less than a preset second threshold ∈2;
[0057] A comparison module, comparing the center C with the characteristic attributes of the target class;
[0058] A third judgment module determines whether to update the class list L according to the deviation judgment result of the second judgment module and the feature attribute comparison result of the comparison module;
[0059] The second updating module replaces the target class with the center C or adds the center C to the class list L as a new target class.
[0060] The present invention also provides a radar point clustering device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned clustering methods when executing the computer program.
[0061] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the aforementioned clustering methods are implemented.
[0062] The present invention provides a radar point trace clustering method, a clustering device, a clustering equipment and a computer-readable storage medium, which solves the problem of reduced radar angular resolution by setting a first threshold ∈1 and a second threshold ∈2 to cluster the points twice.
[0063] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings are included to provide further explanation of the present invention, and they are incorporated into and constitute a part of this application. The accompanying drawings illustrate embodiments of the present invention and together with this specification serve to explain the principles of the present invention. In the accompanying drawings:
[0065] Figure 1 It is a schematic diagram of using DBSCAN to process radar traces in the prior art.
[0066] Figure 2 A schematic diagram of a trace sample that has not been processed by DBSCAN is shown.
[0067] Figure 3 yes Figure 2 Schematic diagram of a sample of points processed by DBSCAN.
[0068] Figure 4A flowchart of a radar point trace clustering method according to an embodiment of the present invention is shown.
[0069] Figure 5 A schematic diagram showing point trace samples processed by the radar point trace clustering method of the present invention is shown.
[0070] Figure 6 yes Figure 5 Schematic diagram of the first threshold ∈1 and the second threshold ∈2 in .
[0071] Figure 7 A schematic diagram of the structure of a radar point trace clustering device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0072] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0073] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0074] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0075] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail, but in appropriate cases, the technology, methods and equipment should be considered as a part of the specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0076] In the description of the present application, it should be understood that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific direction or be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; the directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
[0077] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.
[0078] Figure 4 A flow chart of a radar point trace clustering method according to an embodiment of the present invention is shown. As shown in the figure, a radar point trace clustering method includes the following steps:
[0079] S1, establish the total set of points M;
[0080] S2, traverse the total set of traces M. If the traversal is completed, go to step S5; if not, randomly select a trace D that has not been traversed in the total set of traces M, make trace D the center C, and go to step S3 to generate the target class this time. The center here is to draw a circle with the trace D as the center and the first threshold ∈1 as the radius to obtain a circular area range, and the center of the circular area is the center C.
[0081] S3, the first clustering, iterative update center C, the iterative process includes:
[0082] S31, find all the traces in the trace total set M whose deviation from the center C is less than the preset first threshold ∈1, and establish the trace set N. Specifically, a circle is drawn with the center C as the center and the first threshold ∈1 as the radius to obtain a circular area, and all the traces covered within the area form the trace set N.
[0083] S32, solving the centroid c of the point trace set N. The so-called centroid is the mass center of the aforementioned circular area, which can be a virtual point trace in the circular area obtained by calculation.
[0084] S33, determine whether the centroid c drifts relative to the center C. If so, use the centroid c to update the center C and return to step S31. If not, proceed to step S4.
[0085] In step S3, the centroid c is solved iteratively through the first threshold ∈1, and the centroid c is used to update the center C, which is used to detect the corresponding position (point trace) of the radar strong reflection point in the point trace set M, and condense the point traces from the same target into one point trace.
[0086] S4, the second clustering, uses the center C to update the class list L, which contains the generated target classes. The update process includes:
[0087] Calculate the deviation between the center C and the target class, and determine whether the deviation is less than the preset second threshold ∈2; if the deviation is less than the second threshold ∈2, compare the characteristic attributes of the center C and the target class; determine whether to replace the target class with the center C or add the center C as a new target class to the class list L according to the deviation judgment result and the characteristic attribute comparison result; return to step S2. Among them, the target class is the corresponding position (point trace) of the radar strong reflection point obtained in step S3, and the set of all target classes is the class list L. If the corresponding position (point trace) of the radar strong reflection point is not found, the class list L is an empty set.
[0088] Step S4 updates the class list L by clustering the center C obtained in step S3 and the target class with a closer distance into one target point trace through the second threshold ∈2, while avoiding condensing two different radar strong reflection points into one point trace.
[0089] S5, end. Complete the traversal of the points in the total set of points M and obtain the class list L.
[0090] The original point traces obtained in the radar signal processing process generally include attributes such as distance, speed, angle and amplitude value. The point traces from the same target have similar distances, speeds and angles. The larger the target radar cross section (RCS), the higher its amplitude value. In step S1, the attributes of the point traces in the point trace collection M include distance, speed, angle and amplitude value. The size of the first threshold ∈1 is set according to the standard deviation of the distance, speed and angle of the point trace, and the size of the second threshold ∈2 is set according to the distance span, speed standard deviation and angle span of the point trace. As an example and not a limitation, the first threshold ∈1 and the second threshold ∈2 can also be pre-set by other calculation methods. For example, the first threshold ∈1 can be determined according to the shape and size of the point trace. The first threshold ∈1 and the second threshold ∈2 are set based on experience. Taking a single vehicle as the target, its distance, speed and angle are measured multiple times, and the standard deviation of the distance, speed and angle of the vehicle target is statistically obtained as the first threshold ∈1; the second threshold ∈2 is obtained according to the length, angle span and speed standard deviation of the vehicle target.
[0091] Preferably, the first threshold ∈1 is smaller than the second threshold ∈2. The purpose of setting two clustering thresholds is to detect the position of the radar strong reflection point in the target point cloud (point trace set) by combining the smaller first threshold ∈1 with the iterative method of solving the centroid, that is, to search for the peak point. The second threshold ∈2 is used for mutual exclusion between peak points, that is, the larger second threshold ∈2 is used to cluster the point traces of the strong reflection points with close distances in each point cloud into one target, effectively preventing the target from splitting.
[0092] Preferably, in step S2, let point trace D = (R, V, A, AM), where R is distance, V is speed, A is angle, and AM is amplitude value; let point trace D be center C, then center C = (R, V, A, AM);
[0093] In step S31, all point trace sets Nj whose deviation from the center C is less than the first threshold ∈1 are found in the point trace set N, and the point trace set Nj is a subset of the point trace set N. With the center C as the center and the first threshold ∈1 as the radius, a circular area is drawn, and all the points covered by the area form the point trace set Nj.
[0094] In step S32, let the i-th point in the point trace set Nj be Dji=(Rji, Vji, Aji, AMji); the deviation between the point Dji and the center C is: distance deviation ΔR=abs(R-Rji), speed deviation ΔV=abs(V-Vji), angle deviation ΔA=abs(A-Aji); find the point with the maximum amplitude value among all the points in the point trace set Nj, and use the amplitude value of the point trace as the amplitude value Amaxj of the centroid c;
[0095] The centroid
[0096] Preferably, in step S33, the judgment of whether the centroid c drifts relative to the center C includes: comparing the amplitude values of the centroid c and the center C or comparing the centroid density of the point trace set directly reached by the density of the centroid c and the center C. It should be noted that the centroid density is the number of traces in the point trace set. If it is a point trace set directly reached by the density of the centroid c, a circular area is drawn with the centroid c as the center and the first threshold as the radius. The point trace set is formed by all the traces covered by the circular area. The centroid density of the point trace set is the number of traces contained therein.
[0097] If the amplitude value of the centroid c or the centroid density of the point set directly reached by the density is greater than the amplitude value of the center C or the corresponding centroid density, the center C is updated with the centroid c and the process returns to step S31. If not, the process proceeds to step S4.
[0098] The following example illustrates step S3 and describes the iterative update center C in detail. Execute step S3:
[0099] S31, find all point trace sets N1 whose distance, speed and angle deviation from the center C are all less than the first threshold ∈1;
[0100] S32, find the maximum amplitude value Amax1 of the point trace in the point trace set N1, and find the centroid c1 of the point trace set N1, so that the center C = the centroid c1 (the centroid c1 is assigned to the center C);
[0101] The i-th point in the N1 set is D1i = (R1i, V1i, A1i, AM1i), and the error between D1i and the center C is: distance deviation ΔR = abs(R-R1i), speed deviation ΔV = abs(V-V1i), angle deviation ΔA = abs(A-A1i);
[0102] Calculate the centroid
[0103] S33, determine whether the centroid c1 drifts relative to the center C. If the amplitude value Amax1 is not greater than the amplitude value of the center C, it means there is no drift, and go to step S4 (complete step S3); if the amplitude value Amax1 is greater than the amplitude value of the center C, there is drift, so that the center C = centroid c1, and return to step S31;
[0104] S31, find all point trace sets N2 whose distance, speed and angle deviation from the center C are all less than the first threshold ∈1;
[0105] S32, finding the maximum amplitude value Amax2 of the point trace in the point trace set N2, and finding the centroid c2 of the point trace set N2;
[0106] The i-th point in the N2 set is D2i = (R2i, V2i, A2i, AM2i), and the error between D2i and the center C is: distance deviation ΔR = abs(R-R2i), speed deviation ΔV = abs(V-V2i), angle deviation ΔA = abs(A-A2i);
[0107] Calculate the centroid
[0108] S33, determine whether the centroid c2 drifts relative to the center C. If the amplitude value Amax2 is greater than the amplitude value Amax1 of the center C, there is drift, so that the center C = centroid c2, and repeat step S31, which is an iterative search for the centroid c; if the amplitude value Amax2 is not greater than the amplitude value Amax1, it means there is no drift, and go to step S4.
[0109] Preferably, in step S4, the characteristic attribute is the centroid density of the point set directly reached by the amplitude value or density.
[0110] Preferably, step S4 includes:
[0111] Traverse the target class of the class list L;
[0112] Get the target class in the class list L whose deviation from the center C is less than the second threshold ∈2.
[0113] Compare the amplitude value of center C and the target class or the centroid density of the point set directly reached by the density of the two. If the characteristic attribute of center C is greater than the characteristic attribute of the target class, replace the target class with center C; if the characteristic attribute of center C is not greater than the characteristic attribute of the target class, delete or discard center C. In this step, compare the characteristic attributes of center C and target class, and retain the one with the larger comparison result.
[0114] Return to step S2;
[0115] Alternatively, step S4 comprises:
[0116] Traverse the target class of the class list L;
[0117] Obtain all target classes in the class list L whose deviation from the center C is less than the second threshold ∈2. If the characteristic attributes of the center C are all greater than the characteristic attributes of the target class, then use the center C to replace the target class with the smallest deviation from the center C among all the target classes found;
[0118] Return to step S2;
[0119] Alternatively, step S4 comprises:
[0120] Traverse the target class of the class list L;
[0121] If the deviation between the target class and the center C is not less than the second threshold ∈2, the center C is added to the class list L as a new target class;
[0122] Return to step S2;
[0123] Or, in step S4, if the class list L is an empty set, the center C is added to the class list L as a new target class, and the process returns to step S2.
[0124] The following example illustrates step S4 and describes in detail the updating of the class list L by the center C. Execute step S4:
[0125] Let the class list L be the updated set of target classes generated by the center C obtained in step S2, and let the class list L contain target classes L1 to L3;
[0126] Traverse the target class of the class list L;
[0127] Select target class L1. If the deviation between center C and target class L1 is not less than the second threshold ∈2, select target class L2. If the deviation between center C and target class L2 is less than the second threshold ∈2, compare the amplitude values of the two. If the amplitude value of center C is greater than the amplitude value of target class L2, replace target class L2 with center C and delete or discard the original target class L2; if the amplitude value of center C is not greater than the amplitude value of target class L2, delete or discard center C.
[0128] Alternatively, step S4 comprises:
[0129] Traverse the target class of the class list L;
[0130] Get all target classes whose deviation from center C is less than the second threshold ∈2, for example, target classes L2 and L3 meet the conditions. If the characteristic attributes of center C are greater than the characteristic attributes of target classes L2 and L3, then center C is used to replace the target class L2 and L3 with the smallest deviation from center C. If target class L2 has the smallest deviation from center C, then center C is used to replace class L2.
[0131] Return to step S2.
[0132] Alternatively, step S4 comprises:
[0133] Traverse the target class of the class list L;
[0134] If the deviations of all target classes L1-L3 from center C are not less than the second threshold ∈2, center C is added as a new target class to the class list L. This step shows that if center C cannot be merged with any target class, center C is generated as a new target class in class list L.
[0135] Return to step S2.
[0136] Figure 5 A schematic diagram showing point trace samples processed by the radar point trace clustering method of the present invention is shown. Figure 6 yes Figure 5 Schematic diagram of the first threshold and the second threshold in . Figure 5 The position of the strong reflection point in the target point cloud is detected by combining a smaller first threshold ∈1 with an iterative method of solving the centroid in the point trace sample. After multiple iterations, point trace A is searched on the left side of the point trace sample as the centroid c to update the center C. If the class list L is an empty set, the center C is added to the class list L as a new target class L1. In the total point trace set M, any point trace D that has not been traversed is selected to detect the position of the strong reflection point in the target point cloud. After multiple iterations, point trace B is searched on the right side of the point trace sample as the centroid c to update the center C. Obviously, since the deviation between the center C and the target class L1 is not less than the second threshold ∈2, the center C is added to the class list L as a new target class L2. The final generated class list L contains two target classes L1 and L2, that is, two radar strong reflection points, point trace A and point trace B. By adopting the aggregation algorithm provided by the present invention, the loss of radar resolution capability caused by the clustering algorithm can be better reduced by setting the first threshold ∈1 and the second threshold ∈2, and the resolution performance of the radar product can be improved.
[0137] The present invention also provides a radar point trace clustering device for implementing the aforementioned clustering method. Figure 7 The schematic diagram of the structure of a radar trace clustering device according to an embodiment of the present invention is shown. As shown in the figure, the radar trace clustering device 700 mainly includes a preset unit 701, a selection unit 702, a first clustering unit 703 and a second clustering unit 704.
[0138] The preset unit 701 is used to establish the total set of points M and set a first threshold ∈1 and a second threshold ∈2.
[0139] The selection unit 702 is used to select a point D that has not been traversed in the total set of points M, so that the point D is the center C.
[0140] The first clustering unit 703 is used to iteratively update the center C, including:
[0141] A search module 705 is used to search for all the points in the total point set M whose deviation from the center C is less than a preset first threshold ∈1, and establish a point set N;
[0142] The first calculation module 706 is used to solve the centroid c of the point trace set N;
[0143] The first judgment module 707 is used to judge whether the centroid c drifts relative to the center C;
[0144] The first updating module 708 replaces the center C with the centroid c.
[0145] The second clustering unit 704 updates the class list L with the center C, including:
[0146] A second calculation module 709 is used to calculate the deviation between the center C and the target class;
[0147] A second judgment module 710 is used to judge whether the deviation calculated by the second calculation module 709 is less than a preset second threshold ∈2;
[0148] Comparison module 711, comparing the characteristic attributes of the center C and the target class;
[0149] A third judgment module 712 determines whether to update the class list L according to the deviation judgment result of the second judgment module 710 and the feature attribute comparison result of the comparison module 711;
[0150] The second updating module 713 replaces the target class with the center C or adds the center C to the class list L as a new target class.
[0151] Preferably, the attributes of each point trace in the point trace set M established in the preset unit 701 include distance, speed, angle and amplitude value; the first threshold ∈1 is set according to the standard deviation of the distance, speed and angle of the point trace, and the second threshold ∈2 is set according to the distance span, speed standard deviation and angle span of the point trace. More preferably, the first threshold ∈1 is smaller than the second threshold ∈2.
[0152] Preferably, point trace D is selected in the selection unit 702, and point trace D = (R, V, A, AM), where R is the distance, V is the speed, A is the angle, and AM is the amplitude value; point trace D is the center C, then center C = (R, V, A, AM);
[0153] The search module 705 searches for all point trace sets Nj whose deviation from the center C is less than a first threshold ∈1, and the point trace set Nj is a subset of the point trace set N;
[0154] The first calculation module 706 is used to solve the centroid c of the point set N. Assume that the i-th point in the point set Nj is Dji=(Rji, Vji, Aji, AMji); the deviation between the point Dji and the center C is: distance deviation ΔR=abs(R-Rji), speed deviation ΔV=abs(V-Vji), angle deviation ΔA=abs(A-Aji); the first calculation module 706 finds the maximum amplitude value Amaxj of the point in the point set Nj;
[0155] The centroid
[0156] Preferably, in the first judgment module 707, the judgment on whether the centroid c drifts relative to the center C includes comparing the amplitude values of the centroid c and the center C or comparing the centroid density of the centroid c and the set of points directly reaching the center C; if the judgment result of the first judgment module 707 is that the amplitude value of the centroid c or the centroid density of the set of points directly reaching the center C is greater than the amplitude value of the center C or the centroid density of the corresponding set of points, then the center C is updated with the centroid c through the first update module 708.
[0157] Preferably, the feature attributes compared in the comparison module 711 of the second clustering unit 704 are the centroid density of the point trace set directly reached by the amplitude value or the density.
[0158] Preferably, the second calculation module 709 calculates the deviation between the center C and the target class; if the second judgment module 710 determines that the deviation calculated by the second calculation module 709 is less than the preset second threshold ∈2, and the comparison result of the comparison module 711 is that the center C is greater than the characteristic attribute of the target class, then the third judgment module 712 determines to update the class list, and replaces the target class with the center C through the second update module 713;
[0159] Preferably, the second calculation module 709 calculates the deviation between the center C and the target class; if the second judgment module 710 determines that the deviation calculated by the second calculation module 709 is less than the preset second threshold ∈2, and the comparison result of the comparison module 711 is that the center C is greater than the characteristic attribute of the target class, then the third judgment module 712 determines to update the class list, and replaces the target class with the smallest deviation from the center C among all the target classes found by the second update module 713 with the center C;
[0160] Preferably, the second calculation module 709 is used to calculate the deviation between the center C and the target class; if the second judgment module 710 determines that the deviations calculated by the second calculation module 709 are not less than the preset second threshold ∈2, the third judgment module 712 determines to update the class list, and adds the center C as a new target class to the class list L through the second update module 713;
[0161] Preferably, the second clustering unit 704 further includes an empty set determination module 714 for determining whether the class list L is an empty set. If the empty set determination module 714 determines that the class list L is an empty set, the third determination module 712 determines to update the class list, and adds the center C as a new target class to the class list L through the second update module 713.
[0162] The present invention also provides a radar point clustering device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned clustering methods when executing the computer program.
[0163] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned clustering methods are implemented.
[0164] Among them, the specific implementation methods and technical effects of the radar point clustering device, clustering equipment, and computer-readable storage medium can all be referred to the embodiments of the clustering method provided by the above-mentioned present invention, and will not be repeated here.
[0165] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. The technician may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0166] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.
[0167] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0168] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0169] It will be apparent to those skilled in the art that various modifications and variations may be made to the above exemplary embodiments of the present invention without departing from the spirit and scope of the present invention. Therefore, it is intended that the present invention covers modifications and variations of the present invention that fall within the scope of the appended claims and their equivalent technical solutions.
Claims
1. A radar point trace clustering method, comprising the steps of: S1, establish the total set of points M; S2, traverse the total set of point traces M, and if the traversal is completed, go to step S5; If not, randomly select a point D that has not been traversed in the total point set M, make the point D the center C, and go to step S3 to generate the target class for this time; S3, the first clustering, iterative update center C, the iterative process includes: S31, finding all the traces in the trace total set M whose deviation from the center C is less than a preset first threshold ∈1, and establishing a trace set N; S32, solving the centroid c of the point trace set N; S33, determining whether the centroid c has drifted relative to the center C. If so, the center C is updated with the centroid c, and the process returns to step S31. If not, the process proceeds to step S4. S4, second clustering, using the center C to update the class list L, the class list L contains the generated target class, the updating process includes: Calculate the deviation between the center C and the target class, and determine whether the deviation is less than a preset second threshold ∈2; if the deviation is less than the second threshold ∈2, compare the characteristic attributes of the center C and the target class; determine whether to replace the target class with the center C or add the center C as a new target class to the class list L according to the deviation judgment result and the characteristic attribute comparison result; return to step S2; S5, end.
2. The clustering method according to claim 1, characterized in that: In step S1, the attributes of each point in the point set M include distance, speed, angle and amplitude value; the size of the first threshold ∈1 is set according to the standard deviation of the distance, speed and angle of the point, and the size of the second threshold ∈2 is set according to the distance span, speed standard deviation and angle span of the point.
3. The clustering method according to claim 1, characterized in that: The first threshold ∈1 is smaller than the second threshold ∈2.
4. The clustering method according to claim 1, characterized in that: In step S2, let point trace D = (R, V, A, AM), where R is distance, V is speed, A is angle, and AM is amplitude value; let point trace D be center C, then center C = (R, V, A, AM); In step S31, all point trace sets Nj whose deviation from the center C is less than the first threshold ∈1 are found, and the point trace set Nj is a subset of the point trace set N; In step S32, let the i-th point in the point set Nj be Dji=(Rji, Vji, Aji, AMji); the deviation between the point Dji and the center C is: distance deviation ΔR=abs(R-Rji), speed deviation ΔV=abs(V-Vji), angle deviation ΔA=abs(A-Aji); find the maximum amplitude value Amaxj of the point in the point set Nj; 5. The clustering method according to claim 1, characterized in that: In step S33, judging whether the centroid c drifts relative to the center C includes: comparing the amplitude values of the centroid c and the center C or comparing the centroid density of the point trace set directly reached by the centroid c and the center C; If the amplitude value of the centroid c or the centroid density of the point trace set directly reached by the density is greater than the amplitude value of the center C or the centroid density of the corresponding point trace set, the center C is updated with the centroid c and the process returns to step S31. If not, the process proceeds to step S4.
6. The clustering method according to claim 1, characterized in that: In step S4, the characteristic attribute is the centroid density of the point set directly reached by the amplitude value or density.
7. The clustering method according to claim 1, characterized in that: Step S4 includes: Traverse the target class of the class list L; Obtain the target class in the class list L whose deviation from the center C is less than the second threshold ∈2; Compare the characteristic attributes of the center C and the target class. If the characteristic attributes of the center C are greater than the characteristic attributes of the target class, replace the target class with the center C; if the characteristic attributes of the center C are not greater than the characteristic attributes of the target class, delete or discard the center C; Return to step S2; Alternatively, step S4 comprises: Traverse the target class of the class list L; Obtain all target classes in the class list L whose deviation from the center C is less than the second threshold ∈2, and if the characteristic attributes of the center C are all greater than the characteristic attributes of the target class, replace the target class with the smallest deviation from the center C among all the target classes found with the center C; Return to step S2; Alternatively, step S4 comprises: Traverse the target class of the class list L; If the deviations between the target class and the center C are not less than a second threshold ∈2, the center C is added to the class list L as a new target class; Return to step S2; Or, in step S4, if the class list L is an empty set, the center C is added to the class list L as a new target class, and the process returns to step S2.
8. A radar point clustering device, used to implement the clustering method according to any one of claims 1 to 7, characterized in that: include: A preset unit, used for establishing the total set M of point traces and setting the first threshold ∈1 and the second threshold ∈2; A selection unit selects a point D from the total point set M that has not been traversed, and makes the point D the center C; The first clustering unit, used for iteratively updating the center C, includes: A search module, used to search for all the points in the total point set M whose deviation from the center C is less than a preset first threshold ∈1, and establish the point set N; A first calculation module is used to solve the centroid c of the point trace set N; A first judgment module is used to judge whether the centroid c drifts relative to the center C; A first updating module replaces the center C with the centroid c; The second clustering unit updates the class list L with the center C, including: A second calculation module, used to calculate the deviation between the center C and the target class; A second judgment module, used to judge whether the deviation calculated by the second calculation module is less than a preset second threshold ∈2; A comparison module, comparing the center C with the characteristic attributes of the target class; A third judgment module determines whether to update the class list L according to the deviation judgment result of the second judgment module and the feature attribute comparison result of the comparison module; The second updating module replaces the target class with the center C or adds the center C to the class list L as a new target class.
9. A radar point clustering 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 steps of the clustering method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the clustering method according to any one of claims 1 to 7 are implemented.
