Sensing equipment distribution method and device, medium and equipment
By calculating the shortest path and section priority between intersections, the intersection with high coverage scores is selected as the location of the perceptual equipment point distribution, which solves the problem of insufficient accuracy of the perceptual equipment point distribution in the prior art and improves the ability to collect traffic elements.
Patent Information
- Application Number
- CN202510105563.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, the location of the perception equipment is insufficient in smart roads, and it is difficult to effectively collect information, abnormal events and traffic-related parameters of each road surface.
By obtaining the candidate intersections, sections and their lengths in the target area, as well as the preset number of perceptual devices, the shortest path between each candidate intersection and the target intersection is calculated, the section priority is determined, and the coverage score is calculated based on the priority level, and the priority location for the arrangement of perceptual devices is selected.
It improves the accuracy of the distribution of the perception equipment, enhances the importance of collecting information, abnormal events and traffic-related parameters of each road surface, and thus improves the perception ability of smart roads.
Smart Images

Figure CN119920103A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, medium and equipment for arranging sensing devices. Background Art
[0002] Roadside perception is the use of sensors such as cameras, millimeter-wave radars, and lidars, combined with roadside edge computing, to achieve instant intelligent perception of traffic participants and road conditions on the road section. Roadside perception can expand the perception range of autonomous vehicles and drivers, and realize integrated operation monitoring of people-vehicle-road-cloud through V2X vehicle-road collaboration technology, detect road traffic anomalies at the first time, and realize intelligent applications such as vehicle-road collaboration, vehicle-cloud collaboration, and regional road-cloud collaboration to meet the intelligent travel needs of autonomous vehicles and social vehicles. At the same time, it can make regulatory agencies more efficient and flexible, thereby establishing a more responsive and flexible regulatory environment.
[0003] In the prior art, sensing devices are usually deployed at intersections to collect information on various road traffic elements, abnormal events, and traffic-related parameters. Therefore, the deployment of sensing devices plays an important role in smart roads. How to improve the accuracy of the deployment of sensing devices has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is a method for arranging sensing devices, which comprises the following steps:
[0005] S100, obtain several candidate intersections in the target area, the road section corresponding to each candidate intersection, several first target intersections, the road section corresponding to each first target intersection, the length of each road section and the total number T of preset second sensing devices, where T is an integer greater than 0.
[0006] S200, for any candidate intersection, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, obtain the shortest path between the current candidate intersection and each first target intersection.
[0007] S300, obtaining the priority of each road segment in each shortest path according to the length of each road segment, a preset first length threshold and a preset second length threshold.
[0008] S400: Obtain the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths.
[0009] S500, traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection.
[0010] S600: Filter out T second target intersections according to the total number T of preset second sensing devices and the coverage score corresponding to each candidate intersection.
[0011] S700: Arrange a preset second sensing device at a preset position corresponding to each second target intersection.
[0012] The present invention also provides a sensing device point arrangement device, the sensing device point arrangement device comprising:
[0013] The data acquisition module is used to acquire several candidate intersections in the target area, the road section corresponding to each candidate intersection, several first target intersections, the road section corresponding to each first target intersection, the length of each road section and the total number T of preset second sensing devices, where T is an integer greater than 0.
[0014] The shortest path acquisition module is used to acquire the shortest path between the current candidate intersection and each first target intersection according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection for any candidate intersection.
[0015] The road section priority acquisition module is used to acquire the priority of each road section in each shortest path according to the length of each road section, a preset first length threshold and a preset second length threshold.
[0016] The coverage score acquisition module is used to obtain the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths.
[0017] The candidate intersection traversal module is used to traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection.
[0018] The target intersection screening module is used to screen out T second target intersections according to the total number T of preset second sensing devices and the coverage score corresponding to each candidate intersection.
[0019] The sensing device deployment module is used to deploy a preset second sensing device at a preset position corresponding to each second target intersection.
[0020] The present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned perception device deployment method.
[0021] The present invention also provides an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.
[0022] The present invention has at least the following beneficial effects: according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, the shortest path between the current candidate intersection and each first target intersection is obtained, providing a data basis for characterizing the importance of the road section; according to the comparison result of the length of each road section with the preset first length threshold and the preset second length threshold, the priority of each road section in the shortest path is obtained, which is used to characterize the importance of the corresponding road section in collecting information, abnormal events and traffic-related parameters of various road traffic elements; according to the priority of all road sections in all shortest paths, the corresponding coverage score of each candidate intersection as the source of the shortest path is obtained, which is used to characterize the importance of the corresponding candidate intersection in collecting information, abnormal events and traffic-related parameters of various road traffic elements; T candidate intersections with the largest coverage scores are selected as second target intersections, which improves the importance of collecting information, abnormal events and traffic-related parameters of various road traffic elements, and a preset second sensing device is arranged at a preset position corresponding to each second target intersection, thereby improving the accuracy of the second sensing device. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A flowchart of a method for deploying sensing devices based on clustering provided in Embodiment 1 of the present invention;
[0025] Figure 2 A flowchart of a method for deploying sensing devices based on intersection screening provided in Embodiment 2 of the present invention;
[0026] Figure 3 A flowchart of a method for deploying sensing devices provided in Embodiment 3 of the present invention;
[0027] Figure 4 A schematic diagram of the structure of a clustering-based sensing device deployment device provided in Example 4 of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It is understood that, where appropriate, the above-mentioned terms used to distinguish similar objects can be interchanged so that the present invention can also implement other embodiments other than the above-mentioned illustrated embodiments or described embodiments. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] The first embodiment provides a method for arranging sensing devices based on clustering. The method for arranging sensing devices based on clustering includes the following steps: Figure 1 As shown:
[0032] S1, obtaining the shape score, area of the target area, intersection score and position coordinates corresponding to each initial intersection in the target area.
[0033] Among them, perception equipment can include sensors such as cameras, laser radars, and millimeter-wave radars, which are used to collect information on various road traffic elements, abnormal events, and traffic-related parameters, and can provide highway operation managers with a full range of road condition perception, improving business operation efficiency and management level. At the same time, combined with vehicle-road collaborative technology, it can also provide effective perception redundancy for vehicles running on highways, improve the safety of vehicle operation, and reduce the cost of autonomous driving construction.
[0034] The target area is the geographical area where sensing equipment needs to be deployed. The shape score of the target area is used to measure the irregularity and narrowness of the shape of the target area. The intersection score of the initial intersection is used to measure the intersection importance and intersection traffic data of the initial intersection. The number of cluster sets corresponding to the target area is determined by combining the shape score of the target area, the area of the area and the intersection score corresponding to the initial intersection. This serves as the basis for clustering the intersections in the target area, thereby improving the accuracy of the intersection clustering results.
[0035] In a specific implementation, S1 further includes the following steps:
[0036] S11, obtaining geometric shape parameters of the target area, wherein the geometric shape parameters include perimeter, area, rectangular area corresponding to the bounding rectangle, long circumferential line length and short circumferential line length, wherein the bounding rectangle refers to a rectangle formed by two long circumferential lines parallel to the longest axis of the target area and two short circumferential lines perpendicular to the longest axis.
[0037] S12: Obtain a first shape parameter corresponding to the target region according to the perimeter and the region area.
[0038] S13: Determine the ratio of the length of the long external tangent line to the length of the short external tangent line as a second shape parameter corresponding to the target area.
[0039] S14: Determine the ratio of the area of the rectangle to the area of the region as a third shape parameter corresponding to the target region.
[0040] S15, obtaining a shape score of the target area according to the first shape parameter, the second shape parameter and the third shape parameter.
[0041] Among them, the first shape parameter D 1 =L 2 / (4×π×S), L refers to the circumference, π refers to pi, and correspondingly, the first shape parameter can characterize the shape regularity of the target area. Correspondingly, the larger the first shape parameter is, the lower the shape regularity of the target area is, and the more complex the situation of the intersection in the target area is, then more clustering sets need to be set to cluster the intersections to improve the precision and accuracy of the clustering results.
[0042] Two long circumferential lines parallel to the longest axis of the target area and two short circumferential lines perpendicular to the longest axis are obtained, and the rectangle formed by the two long circumferential lines and the two short circumferential lines constitutes the boundary rectangle. Correspondingly, the boundary rectangle is the minimum matrix surrounding the target area. The second shape parameter can intuitively reflect the flatness of the target area, and the third shape parameter can intuitively reflect the shape regularity of the target area. The larger the second shape parameter, the higher the flatness, the larger the relative distance between intersections, the larger the third shape parameter, the lower the shape regularity, the greater the information difference of traffic elements between intersections, the difference in the situation of abnormal events, and the difference in traffic-related parameters, then more cluster sets need to be set to cluster the intersections to improve the precision and accuracy of the clustering results.
[0043] In a specific implementation, S15 further includes the following steps:
[0044] S151, obtaining a first parameter weight corresponding to the first shape parameter, a second parameter weight corresponding to the second shape parameter, and a third parameter weight corresponding to the third shape parameter.
[0045] S152, obtaining a shape score of the target area according to the first shape parameter, the first parameter weight, the second shape parameter, the second parameter weight, the third shape parameter and the third parameter weight.
[0046] The specific values of the first parameter weight, the second parameter weight and the third parameter weight may be set by the implementer according to actual conditions.
[0047] In the above, a first shape parameter is obtained according to the perimeter and the area of the region, a second shape parameter is obtained according to the length of the long circumferential tangent and the length of the short circumferential tangent, and a third shape parameter is obtained according to the area of the region and the area of the rectangle. The first shape parameter, the second shape parameter and the third shape parameter are combined to characterize the shape regularity and flatness of the target area, and a shape score of the target area is obtained as a basis for judging the number of cluster sets corresponding to the target area, thereby improving the accuracy of the number of clusters.
[0048] In a specific implementation, S1 further includes the following steps:
[0049] S16, obtaining the intersection flow corresponding to each initial intersection in the target area, the section type corresponding to each road section, and the section weight corresponding to each section type, where the section types include expressways, trunk roads, secondary trunk roads, and branch roads.
[0050] S17, obtaining a first score corresponding to each initial intersection according to the section types of all sections corresponding to each initial intersection and the section weight corresponding to each section type.
[0051] S18, obtaining a second score corresponding to each initial intersection according to the proportion of the intersection flow corresponding to each initial intersection in the intersection flow corresponding to all initial intersections.
[0052] S19, obtaining an intersection score corresponding to each initial intersection according to the first score and the second score corresponding to each initial intersection.
[0053] The specific value of the road section weight corresponding to each road section type can be set by the implementer according to the actual situation.
[0054] Each initial intersection may correspond to several road sections. According to the road section weight corresponding to each road section type, the sum of the road section weights of all road sections corresponding to each initial intersection is determined as the first score corresponding to each initial intersection.
[0055] Intersection traffic may include motor vehicle traffic, non-motor vehicle traffic, and pedestrian traffic. By combining the first score and the second score corresponding to each initial intersection, the intersection score corresponding to each initial intersection is obtained to characterize the importance of each initial intersection, which serves as the basis for the deployment of sensing equipment.
[0056] In a specific implementation, S19 further includes the following steps:
[0057] S191, obtaining a first score importance corresponding to the first score and a second score importance corresponding to the second score.
[0058] S192, for any initial intersection, according to the first score, the first score importance, the second score and the second score importance, obtain the intersection score corresponding to the current initial intersection.
[0059] S193, traverse all initial intersections and obtain the intersection score corresponding to each initial intersection.
[0060] The specific values of the first score importance and the second score importance can be set by the implementer according to actual conditions.
[0061] As described above, the intersection score corresponding to each initial intersection is obtained by combining the intersection flow and section type of the initial intersection to measure the importance of the initial intersection, which serves as the basis for the deployment of perception devices and improves the accuracy of the deployment of perception devices.
[0062] S2, obtaining the intersection aggregation degree corresponding to the target area according to the intersection scores corresponding to all initial intersections.
[0063] In a specific implementation, the intersection concentration level corresponding to the target area meets the following conditions:
[0064] B=M / (Σ i=1 M (A i -A 0 ) 2 ), where B refers to the degree of intersection aggregation corresponding to the target area, M refers to the total number of initial intersections in the target area, and A i It refers to the intersection score corresponding to the i-th initial intersection, i = 1, 2, ..., M, A 0 It refers to the average of the intersection scores of the M initial intersections in the target area.
[0065] Among them, the degree of intersection aggregation corresponding to the target area can measure the difference between the intersection scores of different initial intersections, thereby characterizing the consistency between intersections and the distribution of intersections, which serves as the basis for determining the number of cluster sets corresponding to the target area.
[0066] Correspondingly, the greater the degree of intersection aggregation, the smaller the information differences of traffic elements between intersections, the differences in the situations of abnormal events, and the differences in traffic-related parameters, and a smaller number of cluster sets are needed to cluster intersections in order to improve the precision and accuracy of the clustering results.
[0067] As described above, by measuring the differences between the intersection scores of different initial intersections, the consistency between intersections and the distribution of intersections can be characterized, thereby obtaining the degree of intersection aggregation, which serves as the basis for determining the number of cluster sets corresponding to the target area, thereby improving the accuracy of the number of clusters.
[0068] S3, obtaining the number of clusters N according to the shape score, the area and the degree of intersection aggregation.
[0069] Among them, the shape score and regional area are positively correlated with the number of clusters, and the degree of intersection aggregation is negatively correlated with the number of clusters.
[0070] In a specific implementation, the number of clusters N meets the following conditions:
[0071] N=((α 1 ×e -B )+(α 2 ×((2 / (1+e -C )))-1)+(α 3 ×(S / S 0 )))×N 0 , where α 1 Refers to the first preset quantity weight, α 2 Refers to the second preset quantity weight, α 3 refers to the third preset quantity weight, S refers to the area, S 0 Refers to the preset reference area, S 0 >S,N 0 refers to the preset reference cluster number, e refers to the natural constant, and C refers to the shape score, where C meets the following conditions:
[0072] C=β 1 ×D 1 +β 2 ×D 2 +β 3 ×D 3 , where β 1 refers to the first preset scoring weight, β 2 refers to the second preset scoring weight, β 3 Refers to the third preset scoring weight, D 1 is the first shape parameter, D 2 is the second shape parameter, D 3 is the third shape parameter, D 1 Meet the following conditions:
[0073] D 1 =L 2 / (4×π×S), where L refers to the circumference and π refers to the ratio of a circle to a circle.
[0074] Among them, the first preset quantity weight α 1 , the second preset quantity weight α 2 , the third preset quantity weight α 3 , preset reference area S 0 , the preset number of reference clusters N 0 , the first preset scoring weight β 1 , the second preset scoring weight β 2 and the third preset scoring weight β 3 The specific value can be set by the implementer according to the actual situation.
[0075] As described above, based on the correspondence between the shape score, the area, the intersection aggregation degree and the cluster number N, the cluster number N is obtained as the basis for clustering the initial intersections, thereby improving the accuracy of the cluster number N and the clustering accuracy of the initial intersections.
[0076] S4, clustering all the initial intersections according to the number of clusters N and the position coordinates corresponding to all the initial intersections to obtain N first cluster sets.
[0077] Among them, on the basis of determining the number of clusters N, all initial intersections can be clustered using a K-means clustering algorithm according to the position coordinates corresponding to the initial intersections to obtain N first cluster sets.
[0078] S5. According to the number of initial intersections included in each first clustering set, clustering scores corresponding to the N first clustering sets are obtained.
[0079] Among them, in order to ensure the balanced collection of information on traffic elements, abnormal events and traffic-related parameters between intersections in each first clustering set, this embodiment hopes that the number of initial intersections included in the first clustering set is as equal as possible. Therefore, according to the number of initial intersections included in each first clustering set, the clustering effects of the N first clustering sets are scored. Correspondingly, the higher the clustering score, the better the clustering effect of the N first clustering sets.
[0080] In a specific implementation, the clustering score meets the following conditions:
[0081] F=(Σ i=1 N (E j -E 0 ) 2 ) / N, where F refers to the clustering scores corresponding to the N first clustering sets, N refers to the total number of first clustering sets, and E j It refers to the number of initial intersections included in the jth first cluster set, j = 1, 2, ..., N, E 0It refers to the average value of the number of initial intersections included in the N first clustering sets.
[0082] In the above, according to the difference between the numbers of initial intersections included in the first clustering sets, clustering scores corresponding to the N first clustering sets are obtained to measure the clustering effects of the N first clustering sets, which serve as the basis for updating the number of clusters, thereby improving the clustering effect.
[0083] S6: If the cluster score is less than a preset cluster score threshold, the number of clusters N is updated according to a preset step size to obtain an updated number of clusters W.
[0084] The preset step size and the preset clustering score threshold may be set by the implementer according to actual conditions. For example, the preset step size may be +1 or -1, which is used to adjust the number of clusters to improve the clustering effect.
[0085] In a specific embodiment, if the number of clusters is updated according to the preset step size and the corresponding clustering is performed, and the updated clustering score is less than the clustering score before the update, the preset step size can be increased or decreased, or the positive or negative nature of the preset step size can be changed, and clustering can be performed again to achieve the purpose of improving the clustering effect.
[0086] S7, using the updated cluster number W to replace the cluster number N, and repeating steps S4-S6 until the cluster score is greater than or equal to a preset cluster score threshold, and determining the corresponding first cluster set as the second cluster set.
[0087] As described above, by updating the number of clusters and clustering the initial intersections according to the updated number of clusters, the clustering effect of the initial intersections is improved, thereby improving the accuracy of the second cluster set.
[0088] S8, arranging preset sensing devices according to the second cluster set.
[0089] In a specific implementation, S8 further includes the following steps:
[0090] S81, acquiring H second cluster sets corresponding to all initial intersections in the target area, and the cluster center intersection corresponding to each second cluster set, where H refers to the total number of second cluster sets.
[0091] S82, screening all initial intersections according to the maximum intersection score and the intersection score corresponding to each initial intersection to obtain candidate intersections.
[0092] S83. For the hth second cluster set, the number of sensing devices corresponding to the hth second cluster set is obtained according to the total number of preset sensing devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in the H second cluster sets, where h = 1, 2, ..., H.
[0093] S84, according to the position coordinates of the cluster center intersection in the hth second cluster set and the position coordinates of each candidate intersection, determine the candidate intersection closest to the cluster center intersection as the first first target intersection corresponding to the hth second cluster set.
[0094] S85, according to the first first target intersection to the kth h The position coordinates of the first target intersection and the position coordinates of each candidate intersection in the current second cluster set will be combined with the previous k h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, where k h ≥1, k is an integer.
[0095] S86, repeat step S85 until k h is equal to the number of sensing devices corresponding to the hth second clustering set.
[0096] S87, traverse all the second cluster sets, and obtain the first target intersection corresponding to each second cluster set.
[0097] S88, arranging a preset sensing device at a preset position corresponding to each first target intersection.
[0098] In a specific implementation, S8 further includes the following steps:
[0099] S801, obtaining the total number of preset sensing devices and H second cluster sets corresponding to all initial intersections in the target area.
[0100] S802, for the hth second cluster set, according to the total number of preset sensing devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in the H second cluster sets, obtain the number of sensing devices corresponding to the hth second cluster set, h = 1, 2, ..., H.
[0101] S803: randomly arrange the sensing devices whose number is the same as that corresponding to the h-th second cluster set at the preset positions corresponding to the first target intersection in the h-th second cluster set.
[0102] In the above, according to the intersection scores corresponding to all the initial intersections, the differences between the intersection scores of different initial intersections are measured, and the consistency between the intersections and the distribution of the intersections are characterized, so as to obtain the intersection aggregation degree corresponding to the target area, and according to the corresponding relationship between the shape score, the area and the intersection aggregation degree and the cluster number N, the accuracy of the cluster number N is improved; according to the cluster number N and the position coordinates corresponding to all the initial intersections, all the initial intersections are clustered to obtain N first cluster sets, and according to the number of initial intersections included in each first cluster set, N first cluster sets are obtained. The clustering score corresponding to a cluster set is used to characterize the quality of the clustering effects corresponding to the N first cluster sets. If the clustering score is less than the preset clustering score threshold, the number of clusters is updated according to the preset step size, and the updated number of clusters is used instead of the number of clusters N. The clustering operation is repeated until the clustering score is greater than or equal to the preset clustering score threshold, and the corresponding first cluster set is determined as the second cluster set. The preset perception equipment is arranged according to the second cluster set, which improves the clustering effect of the initial intersection, thereby improving the accuracy of the second cluster set, and further improving the accuracy of the placement of the perception equipment.
[0103] Embodiment 2
[0104] The second embodiment provides a method for arranging sensing devices based on intersection screening. The method for arranging sensing devices based on intersection screening includes: Figure 2 As shown:
[0105] S10, obtaining the intersection score corresponding to each initial intersection in the target area, the location coordinates of each initial intersection, H second cluster sets corresponding to all initial intersections in the target area, and the cluster center intersection corresponding to each second cluster set, where H refers to the total number of second cluster sets.
[0106] In a specific implementation, S10 further includes the following steps:
[0107] S101, obtaining the intersection flow corresponding to each initial intersection in the target area, the section type corresponding to each road section, and the section weight corresponding to each section type, where the section types include expressways, trunk roads, secondary trunk roads, and branch roads.
[0108] S102: Obtain a first score corresponding to each initial intersection according to the section types of all sections corresponding to each initial intersection and the section weight corresponding to each section type.
[0109] S103, obtaining a second score corresponding to each initial intersection according to the proportion of the intersection flow corresponding to each initial intersection in the intersection flow corresponding to all initial intersections.
[0110] S104, acquiring an intersection score corresponding to each initial intersection according to the first score and the second score corresponding to each initial intersection.
[0111] In a specific implementation, S10 further includes the following steps:
[0112] S111, obtaining the shape score, area of the target area, and the intersection score and position coordinates corresponding to each initial intersection in the target area.
[0113] S112, obtaining the intersection concentration level corresponding to the target area according to the intersection scores corresponding to all the initial intersections.
[0114] S113, obtaining the number of clusters N according to the shape score, the area and the degree of intersection aggregation.
[0115] S114: Cluster all the initial intersections according to the number of clusters N and the position coordinates corresponding to all the initial intersections to obtain N first cluster sets.
[0116] S115 , acquiring clustering scores corresponding to the N first clustering sets according to the number of initial intersections included in each first clustering set.
[0117] S116: If the cluster score is less than a preset cluster score threshold, the number of clusters N is updated according to a preset step size, and an updated number of clusters W is obtained.
[0118] S117, using the updated cluster number W to replace the cluster number N, repeating steps S114-S116 until the cluster score is greater than or equal to the preset cluster score threshold, and determining the corresponding first cluster set as the second cluster set, and obtaining H second cluster sets.
[0119] S20, screening all initial intersections according to the maximum intersection score and the intersection score corresponding to each initial intersection to obtain candidate intersections.
[0120] In a specific implementation, S20 further includes the following steps:
[0121] S21, obtaining the largest intersection score among all intersection scores and a preset score ratio threshold.
[0122] S22: For any initial intersection, if the ratio of the intersection score of the current initial intersection to the maximum intersection score is greater than the score ratio threshold, the current initial intersection is determined as a candidate intersection.
[0123] S23, traverse all initial intersections and obtain all candidate intersections.
[0124] The specific value of the preset score ratio threshold value can be set by the implementer according to the actual situation. For example, the preset score ratio threshold value is set to 0.5.
[0125] As described above, on the basis that the intersection score can represent the importance of the corresponding initial intersection, the initial intersections are screened according to the intersection scores corresponding to the initial intersections, and the initial intersections with high importance are selected as candidate intersections, providing a basis for equipment deployment.
[0126] S30. For the hth second cluster set, the number of perception devices corresponding to the hth second cluster set is obtained according to the total number of preset first perception devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in the H second cluster sets, where h = 1, 2, ..., H.
[0127] Among them, the first perception equipment can include sensors such as cameras, laser radars, millimeter-wave radars, etc., which are used to collect information on various road traffic elements, abnormal events and traffic-related parameters, and can provide highway operation managers with a full range of road condition perception, improve business operation efficiency and management level. At the same time, combined with vehicle-road collaborative technology, it can also provide effective perception redundancy for vehicles running on highways, improve the safety of vehicle operation, and reduce the cost of autonomous driving construction.
[0128] In order to ensure balanced collection of information on traffic elements, abnormal events and traffic-related parameters between intersections in each second clustering set, the greater the proportion of initial intersections in the second clustering set in the total number of initial intersections, the more sensing devices are allocated to the corresponding second clustering set.
[0129] The specific value of the total number of preset first sensing devices can be set by the implementer according to actual conditions.
[0130] In a specific implementation, the number of sensing devices corresponding to the hth second clustering set meets the following conditions:
[0131] Among them, P h refers to the number of sensing devices corresponding to the hth second cluster set, P 0 Refers to the total number of preset sensing devices, G h refers to the number of initial intersections in the hth second clustering set, It is the floor function.
[0132] As described above, based on the proportion of the number of initial intersections in the second cluster set in the total number of initial intersections, the number of sensing devices corresponding to the second cluster set is obtained to ensure balanced collection of information on traffic elements, abnormal events and traffic-related parameters between intersections in each second cluster set, thereby improving the accuracy of the deployment of sensing devices.
[0133] S40, according to the position coordinates of the cluster center intersection in the hth second cluster set and the position coordinates of each candidate intersection, determine the candidate intersection closest to the cluster center intersection as the first first target intersection corresponding to the hth second cluster set.
[0134] As described above, in each second cluster set, the candidate intersection closest to each cluster center intersection is determined as the first first target intersection corresponding to each second cluster set as the basis for arranging the first sensing device, thereby improving the effectiveness of collecting information on traffic elements, abnormal events and traffic-related parameters between intersections, and improving the accuracy of the deployment of the first sensing device.
[0135] S50, according to the first first target intersection to the kth h The position coordinates of the first target intersection and the position coordinates of each candidate intersection in the current second cluster set will be combined with the previous k h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, where k h ≥1, k is an integer.
[0136] In a specific implementation, S50 further includes the following steps:
[0137] S51, for any candidate intersection in the current second clustering set, according to the first first target intersection to the kth h The position coordinates of the first target intersection and the position coordinates of the current candidate intersection are obtained, and the current candidate intersection and the first first target intersection to the kth h The total distance between the first target intersections.
[0138] S52, traverse all candidate intersections in the current second cluster set, and obtain the intersections between each candidate intersection in the current second cluster set and the first first target intersection to the kth first target intersection. h The total distance between the first target intersections.
[0139] S53, determining the candidate intersection corresponding to the largest total distance as the kth intersection corresponding to the current second cluster set h +1 first target intersection.
[0140] Among them, will be with the previous k hThe candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection improves the accuracy of the first perception device's deployment, increases the collection scope of traffic element information, abnormal events, and traffic-related parameters between intersections, and increases the richness of data collected by the first perception device.
[0141] S60, repeat step S50 until k h is equal to the number of sensing devices corresponding to the hth second clustering set.
[0142] S70, traverse all second cluster sets to obtain the first target intersection corresponding to each second cluster set.
[0143] S80: Arrange a preset first sensing device at a preset position corresponding to each first target intersection.
[0144] In the above, on the basis that the intersection score can characterize the importance of the corresponding initial intersection, the initial intersections are screened according to the intersection scores corresponding to the initial intersections, and the initial intersections with high importance are selected as candidate intersections. According to the proportion of the number of initial intersections in the second cluster set in the total number of initial intersections, the number of sensing devices corresponding to the second cluster set is obtained to ensure that the information of traffic elements, abnormal events and traffic-related parameters between intersections in each second cluster set are collected in a balanced manner, thereby improving the accuracy of the placement of sensing devices; in each second cluster set, the candidate intersection closest to each cluster center intersection is determined as the first first target intersection corresponding to each second cluster set as the basis for arranging the first sensing device, thereby improving the effectiveness of collecting the information of traffic elements, abnormal events and traffic-related parameters between intersections; the candidate intersection closest to the previous k cluster center intersections is determined as the first first target intersection corresponding to each second cluster set as the basis for arranging the first sensing device, thereby improving the effectiveness of collecting the information of traffic elements, abnormal events and traffic-related parameters between intersections; h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, which increases the collection scope of information on traffic elements, abnormal events and traffic-related parameters between intersections, and increases the richness of data collected by the first perception device; repeat the steps of determining the first target intersection until k h The number of sensing devices corresponding to the h-th second clustering set is equal to that of the sensing devices, and the preset first sensing devices are arranged at the preset positions corresponding to each first target intersection, thereby improving the accuracy of the deployment of the first sensing devices, and thus improving the accuracy of the collection of information on traffic elements, abnormal events and traffic-related parameters between intersections.
[0145] Embodiment 3
[0146] The third embodiment provides a method for arranging sensing devices, and the method for arranging sensing devices includes: Figure 3 As shown:
[0147] S100, obtain several candidate intersections in the target area, the road section corresponding to each candidate intersection, several first target intersections, the road section corresponding to each first target intersection, the length of each road section and the total number T of preset second sensing devices, where T is an integer greater than 0.
[0148] Among them, the second perception equipment can include sensors such as cameras, laser radars, millimeter-wave radars, etc., which are used to collect information on various road traffic elements, abnormal events and traffic-related parameters, and can provide highway operation managers with a full range of road condition perception, improve business operation efficiency and management level. At the same time, combined with vehicle-road collaborative technology, it can also provide effective perception redundancy for vehicles running on highways, improve the safety of vehicle operation, and reduce the cost of autonomous driving construction.
[0149] In a specific implementation, S100 further includes the following steps:
[0150] S110, obtaining the intersection flow corresponding to each initial intersection in the target area, the section type corresponding to each road section, and the section weight corresponding to each road section type, where the section types include expressways, trunk roads, secondary trunk roads, and branch roads.
[0151] S120: Obtain a first score corresponding to each initial intersection according to the section types of all sections corresponding to each initial intersection and the section weight corresponding to each section type.
[0152] S130, obtaining a second score corresponding to each initial intersection according to the proportion of the intersection flow corresponding to each initial intersection in the intersection flow corresponding to all initial intersections.
[0153] S140, acquiring the intersection score corresponding to each initial intersection and the maximum intersection score among all the intersection scores according to the first score and the second score corresponding to each initial intersection.
[0154] S150: For any initial intersection, if the ratio of the intersection score of the current initial intersection to the maximum intersection score is greater than a preset score ratio threshold, the current initial intersection is determined as a candidate intersection.
[0155] S160, traverse all initial intersections to obtain all candidate intersections.
[0156] In a specific implementation, S100 further includes the following steps:
[0157] S10, obtaining the intersection score corresponding to each initial intersection in the target area, the location coordinates of each initial intersection, H second cluster sets corresponding to all initial intersections in the target area, and the cluster center intersection corresponding to each second cluster set, where H refers to the total number of second cluster sets.
[0158] S30. For the hth second cluster set, the number of perception devices corresponding to the hth second cluster set is obtained according to the total number of preset first perception devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in the H second cluster sets, where h = 1, 2, ..., H.
[0159] S40, according to the position coordinates of the cluster center intersection in the hth second cluster set and the position coordinates of each candidate intersection, determine the candidate intersection closest to the cluster center intersection as the first first target intersection corresponding to the hth second cluster set.
[0160] S50, according to the first first target intersection to the kth h The position coordinates of the first target intersection and the position coordinates of each candidate intersection in the current second cluster set will be combined with the previous k h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, where k h ≥1, k is an integer.
[0161] S60, repeat step S50 until k h is equal to the number of sensing devices corresponding to the hth second clustering set.
[0162] S70, traverse all second cluster sets to obtain the first target intersection corresponding to each second cluster set.
[0163] S200, for any candidate intersection, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, obtain the shortest path between the current candidate intersection and each first target intersection.
[0164] Among them, for any candidate intersection, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, several paths between the current candidate intersection and each first target intersection are obtained, and then according to the length of the road section included in each path, the total length corresponding to each path can be obtained, thereby screening out the shortest path between the current candidate intersection and each first target intersection as the basis for characterizing the importance of the road section.
[0165] In the above, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, the shortest path between the current candidate intersection and each first target intersection is obtained, which provides a data basis for characterizing the importance of the road section.
[0166] S300, obtaining the priority of each road segment in each shortest path according to the length of each road segment, a preset first length threshold and a preset second length threshold.
[0167] The specific values of the preset first length threshold and the preset second length threshold may be set by the implementer according to actual conditions. For example, the preset first length threshold may refer to 1 km, and the preset second length threshold may refer to 3 km.
[0168] In a specific implementation, S300 further includes the following steps:
[0169] S310: For any shortest path, if the sum of the lengths of all segments in the current shortest path is less than or equal to a preset first length threshold, all segments included in the current shortest path are determined as high priority segments.
[0170] S320: If the sum of the lengths of all the sections in the current shortest path is greater than a preset first length threshold and less than or equal to a preset second length threshold, all the sections included in the current shortest path are determined as medium priority sections.
[0171] S330: If the sum of the lengths of all the sections in the current shortest path is greater than a preset second length threshold, all the sections included in the current shortest path are determined as low priority sections.
[0172] Among them, in the travel of motor vehicles, non-motor vehicles and pedestrians, short-distance sections have higher priority than long-distance sections. Therefore, on the basis that the preset first length threshold is less than the preset second length threshold, the priority of each section in each shortest path is determined according to the comparison result of the length of each section with the preset first length threshold and the preset second length threshold, as the basis for measuring the importance of each intersection.
[0173] As described above, based on the comparison results of the length of each road section with the preset first length threshold and the preset second length threshold, the priority of each road section in the shortest path is obtained, which is used to characterize the importance of the corresponding road section in collecting information on various road traffic elements, abnormal events and traffic-related parameters, and provides a data basis for the layout of sensing equipment, thereby improving the accuracy of the layout of the second sensing equipment.
[0174] S400: Obtain the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths.
[0175] Among them, according to the priority of each road section, the road section situation between each candidate intersection and the first target intersection where the first sensing device is arranged in the target area when each candidate intersection is used as the source of the shortest path can be obtained, and the corresponding coverage score when each candidate intersection is used as the source of the shortest path can be further obtained, which is used to characterize the importance of the corresponding candidate intersection in collecting information on various road traffic elements, abnormal events and traffic-related parameters, as the basis for screening the location of the second sensing device.
[0176] In a specific implementation, S400 further includes the following steps:
[0177] S410 , according to the priorities of all road sections in all shortest paths, obtain X high priority road sections, Y medium priority road sections, the length of each high priority road section and the length of each medium priority road section, where X and Y are integers greater than or equal to 0.
[0178] S420, according to the total length of all road sections in the target area, the X high-priority road sections, the Y medium-priority road sections, the length of each high-priority road section, and the length of each medium-priority road section, obtain a coverage score Q corresponding to the current candidate intersection, where Q meets the following conditions:
[0179] Q=(R 1x +R 2y / U) / R 0 , where R 1x is the length of the x-th high-priority section, x = 1, 2, ..., X, X is the total number of high-priority sections, R 1y refers to the length of the yth medium-priority road segment, y = 1, 2, ..., Y, Y refers to the total number of medium-priority road segments, R 0 It refers to the total length of all road sections in the target area, and U refers to the preset coverage score coefficient.
[0180] Among them, when calculating the coverage score, the weight of the high-priority section is higher than that of the medium-priority section, and the weight of the low-priority section is the lowest. Therefore, this embodiment sets the weight corresponding to the high-priority section to 1, uses the preset coverage score coefficient to reduce the weight of the medium-priority section, and sets the weight of the low-priority section to 0. Based on this, the coverage score corresponding to each candidate intersection is obtained to characterize the importance of each candidate intersection in collecting information on various road traffic elements, abnormal events and traffic-related parameters.
[0181] In one specific embodiment, U=H.
[0182] As described above, based on the priorities of all road sections in all shortest paths, the corresponding coverage score of each candidate intersection as the source of the shortest path is obtained, which is used to characterize the importance of the corresponding candidate intersection in collecting information on various road traffic elements, abnormal events and traffic-related parameters. This serves as the basis for screening the location of the second perception device, thereby improving the accuracy of the location of the second perception device.
[0183] S500, traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection.
[0184] S600: Filter out T second target intersections according to the total number T of preset second sensing devices and the coverage score corresponding to each candidate intersection.
[0185] In a specific implementation, S600 further includes the following steps:
[0186] S610: Sort all candidate intersections in descending order of coverage scores to obtain an intersection sorting result.
[0187] S620: Determine the first T candidate intersections in the intersection ranking result as T second target intersections.
[0188] As described above, T candidate intersections with the largest coverage scores are screened out as the second target intersection, which increases the importance of collecting information on various road traffic elements, abnormal events and traffic-related parameters, and improves the accuracy of the second perception device's layout when used as the second perception device's layout location.
[0189] S700: Arrange a preset second sensing device at a preset position corresponding to each second target intersection.
[0190] In the above, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, the shortest path between the current candidate intersection and each first target intersection is obtained, which provides a data basis for characterizing the importance of the road section; according to the comparison result of the length of each road section with the preset first length threshold and the preset second length threshold, the priority of each road section in the shortest path is obtained, which is used to characterize the importance of the corresponding road section in collecting information, abnormal events and traffic-related parameters of various road traffic elements; according to the priority of all road sections in all shortest paths, the corresponding coverage score of each candidate intersection as the source of the shortest path is obtained, which is used to characterize the importance of the corresponding candidate intersection in collecting information, abnormal events and traffic-related parameters of various road traffic elements; T candidate intersections with the largest coverage scores are selected as the second target intersections, which improves the importance of collecting information, abnormal events and traffic-related parameters of various road traffic elements, and the preset second perception device is arranged at the preset position corresponding to each second target intersection, which improves the accuracy of the layout of the second perception device.
[0191] Embodiment 4
[0192] This fourth embodiment provides a sensing device deployment device, the sensing device deployment device includes: Figure 4 As shown:
[0193] The data acquisition module 41 is used to acquire several candidate intersections in the target area, the road section corresponding to each candidate intersection, several first target intersections, the road section corresponding to each first target intersection, the length of each road section and the total number T of preset second sensing devices, where T is an integer greater than 0.
[0194] The shortest path acquisition module 42 is used to acquire the shortest path between the current candidate intersection and each first target intersection according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection for any candidate intersection.
[0195] The road section priority acquisition module 43 is used to acquire the priority of each road section in each shortest path according to the length of each road section, a preset first length threshold and a preset second length threshold.
[0196] The coverage score acquisition module 44 is used to acquire the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths.
[0197] The candidate intersection traversal module 45 is used to traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection.
[0198] The target intersection screening module 46 is used to screen out T second target intersections according to the total number T of preset second sensing devices and the coverage score corresponding to each candidate intersection.
[0199] The sensing device deployment module 47 is used to deploy a preset second sensing device at a preset position corresponding to each second target intersection.
[0200] In a specific implementation, the data acquisition module 41 further includes:
[0201] The first data acquisition submodule is used to obtain the intersection flow corresponding to each initial intersection in the target area, the section type corresponding to each road section and the section weight corresponding to each section type. The section types include expressways, trunk roads, secondary trunk roads and branch roads.
[0202] The first score acquisition submodule is used to acquire a first score corresponding to each initial intersection according to the section types of all sections corresponding to each initial intersection and the section weight corresponding to each section type.
[0203] The second score acquisition submodule is used to acquire a second score corresponding to each initial intersection according to the proportion of the intersection flow corresponding to each initial intersection in the intersection flow corresponding to all initial intersections.
[0204] The intersection score acquisition submodule is used to acquire the intersection score corresponding to each initial intersection and the maximum intersection score among all intersection scores according to the first score and the second score corresponding to each initial intersection.
[0205] The candidate intersection screening submodule is used to determine, for any initial intersection, the current initial intersection as a candidate intersection if the ratio of the intersection score of the current initial intersection to the maximum intersection score is greater than a preset score ratio threshold.
[0206] The initial intersection traversal submodule is used to traverse all initial intersections and obtain all candidate intersections.
[0207] In a specific implementation, the data acquisition module 41 further includes:
[0208] The second data acquisition submodule is used to obtain the intersection score corresponding to each initial intersection in the target area, the location coordinates of each initial intersection, H second cluster sets corresponding to all initial intersections in the target area, and the cluster center intersection corresponding to each second cluster set, where H refers to the total number of second cluster sets.
[0209] The sensing device quantity acquisition submodule is used to obtain the number of sensing devices corresponding to the hth second cluster set according to the total number of preset first sensing devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in the Hth second cluster sets, where h = 1, 2, ..., H.
[0210] The first target intersection acquisition submodule is used to determine the candidate intersection closest to the cluster center intersection as the first first target intersection corresponding to the hth second cluster set based on the position coordinates of the cluster center intersection in the hth second cluster set and the position coordinates of each candidate intersection.
[0211] The second target intersection acquisition submodule is used to obtain the first target intersection from the first target intersection to the kth target intersection. h The position coordinates of the first target intersection and the position coordinates of each candidate intersection in the current second cluster set will be combined with the previous k h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, where k h ≥1, k is an integer.
[0212] The third target intersection acquisition submodule is used to repeatedly execute the second target intersection acquisition submodule until k h is equal to the number of sensing devices corresponding to the hth second clustering set.
[0213] The cluster set traversal submodule is used to traverse all the second cluster sets and obtain the first target intersection corresponding to each second cluster set.
[0214] In a specific implementation, the road section priority acquisition module 43 further includes:
[0215] The high-priority section determination submodule is used to determine, for any section in any shortest path, if the length of the current section is less than or equal to a preset first length threshold, the current section as a high-priority section.
[0216] The medium priority section determination submodule is used to determine the current section as a medium priority section if the length of the current section is greater than a preset first length threshold and less than or equal to a preset second length threshold.
[0217] The low-priority road section determination submodule is used to determine the current road section as a low-priority road section if the length of the current road section is greater than a preset second length threshold.
[0218] In a specific implementation, the coverage score acquisition module 44 further includes:
[0219] The segment length acquisition submodule is used to obtain X high-priority segments, Y medium-priority segments, the length of each high-priority segment, and the length of each medium-priority segment according to the priorities of all segments in all shortest paths, where X and Y are integers greater than or equal to 0.
[0220] The coverage score acquisition submodule is used to obtain the coverage score Q corresponding to the current candidate intersection according to the total length of all road sections in the target area, X high-priority road sections, Y medium-priority road sections, the length of each high-priority road section, and the length of each medium-priority road section, where Q meets the following conditions:
[0221] Q=(R 1x +R 2y / U) / R 0 , where R 1x is the length of the x-th high-priority section, x = 1, 2, ..., X, X is the total number of high-priority sections, R 1y refers to the length of the yth medium-priority road segment, y = 1, 2, ..., Y, Y refers to the total number of medium-priority road segments, R 0 It refers to the total length of all road sections in the target area, and U refers to the preset coverage score coefficient.
[0222] In one specific embodiment, U=H.
[0223] In a specific implementation, the target intersection screening module 46 further includes:
[0224] The intersection sorting submodule is used to sort all candidate intersections in descending order of coverage scores to obtain the intersection sorting results.
[0225] The target intersection screening submodule is used to determine the first T candidate intersections in the intersection sorting result as T second target intersections.
[0226] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0227] Embodiment 5
[0228] Embodiment 5 of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps:
[0229] S100, obtain several candidate intersections in the target area, the road section corresponding to each candidate intersection, several first target intersections, the road section corresponding to each first target intersection, the length of each road section and the total number T of preset second sensing devices, where T is an integer greater than 0.
[0230] S200, for any candidate intersection, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, obtain the shortest path between the current candidate intersection and each first target intersection.
[0231] S300, obtaining the priority of each road segment in each shortest path according to the length of each road segment, a preset first length threshold and a preset second length threshold.
[0232] S400: Obtain the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths.
[0233] S500, traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection.
[0234] S600: Filter out T second target intersections according to the total number T of preset second sensing devices and the coverage score corresponding to each candidate intersection.
[0235] S700: Arrange a preset second sensing device at a preset position corresponding to each second target intersection.
[0236] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0237] Those skilled in the art 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. In actual applications, the above-mentioned functions can be assigned to 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.
[0238] Embodiment 6
[0239] A sixth embodiment of the present invention provides an electronic device, which includes a processor and the non-transitory computer-readable storage medium in the fifth embodiment of the present invention.
[0240] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for arranging sensing devices, characterized in that: The sensing device deployment method comprises the following steps: S100, obtaining a plurality of candidate intersections in the target area, a road section corresponding to each candidate intersection, a plurality of first target intersections, a road section corresponding to each first target intersection, a length of each road section, and a total number T of preset second sensing devices, where T is an integer greater than 0; S200, for any candidate intersection, according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection, obtain the shortest path between the current candidate intersection and each first target intersection; S300, obtaining the priority of each road segment in each shortest path according to the length of each road segment, a preset first length threshold and a preset second length threshold; S400, obtaining a coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths; S500, traversing all candidate intersections, and obtaining a coverage score corresponding to each candidate intersection; S600, screening out T second target intersections according to a preset total number T of second sensing devices and a coverage score corresponding to each candidate intersection; S700: Arrange a preset second sensing device at a preset position corresponding to each second target intersection.
2. The sensing device deployment method according to claim 1, characterized in that: S100 also includes the following steps: S110, obtaining the intersection flow corresponding to each initial intersection in the target area, the section type corresponding to each road section, and the section weight corresponding to each road section type, wherein the road section types include expressways, trunk roads, secondary trunk roads, and branch roads; S120, obtaining a first score corresponding to each initial intersection according to the section types of all sections corresponding to each initial intersection and the section weight corresponding to each section type; S130, obtaining a second score corresponding to each initial intersection according to the proportion of the intersection flow corresponding to each initial intersection in the intersection flow corresponding to all initial intersections; S140, obtaining an intersection score corresponding to each initial intersection and a maximum intersection score among all intersection scores according to the first score and the second score corresponding to each initial intersection; S150, for any initial intersection, if the ratio of the intersection score of the current initial intersection to the maximum intersection score is greater than a preset score ratio threshold, the current initial intersection is determined as a candidate intersection; S160, traverse all initial intersections to obtain all candidate intersections.
3. The sensing device deployment method according to claim 2, characterized in that: S100 also includes the following steps: S10, obtaining the intersection score corresponding to each initial intersection in the target area, the location coordinates of each initial intersection, H second cluster sets corresponding to all the initial intersections in the target area, and the cluster center intersection corresponding to each second cluster set, where H refers to the total number of second cluster sets; S30, for the hth second cluster set, according to the total number of preset first sensing devices, the ratio of the number of initial intersections in the hth second cluster set to the total number of initial intersections in H second cluster sets, obtaining the number of sensing devices corresponding to the hth second cluster set, h=1, 2, ..., H; S40, according to the position coordinates of the cluster center intersection in the hth second cluster set and the position coordinates of each candidate intersection, determining the candidate intersection closest to the cluster center intersection as the first first target intersection corresponding to the hth second cluster set; S50, according to the first first target intersection to the kth h The position coordinates of the first target intersection and the position coordinates of each candidate intersection in the current second cluster set will be combined with the previous k h The candidate intersection farthest from the first target intersection is determined as the kth candidate intersection corresponding to the current second cluster set. h +1 first target intersection, where k h ≥1, k is an integer; S60, repeat step S50 until k h is equal to the number of sensing devices corresponding to the h-th second cluster set; S70, traverse all second cluster sets to obtain the first target intersection corresponding to each second cluster set.
4. The sensing device deployment method according to claim 1, characterized in that: S300 also includes the following steps: S310: For any shortest path, if the sum of the lengths of all segments in the current shortest path is less than or equal to a preset first length threshold, all segments included in the current shortest path are determined as high priority segments. S320: If the sum of the lengths of all the sections in the current shortest path is greater than the preset first length threshold and less than or equal to the preset second length threshold, all the sections included in the current shortest path are determined as medium priority sections. S330: If the sum of the lengths of all the sections in the current shortest path is greater than the preset second length threshold, all the sections included in the current shortest path are determined as low priority sections.
5. The sensing device deployment method according to claim 4, characterized in that: S400 also includes the following steps: S410, according to the priorities of all road sections in all shortest paths, obtaining X high-priority road sections, Y medium-priority road sections, the length of each high-priority road section, and the length of each medium-priority road section, where X and Y are integers greater than or equal to 0; S420, obtaining a coverage score Q corresponding to the current candidate intersection according to the total length of all road sections in the target area, the X high-priority road sections, the Y medium-priority road sections, the length of each high-priority road section, and the length of each medium-priority road section, wherein Q meets the following conditions: Q=(R 1x +R 2y / U) / R 0 , where R 1x is the length of the x-th high-priority section, x = 1, 2, ..., X, X is the total number of high-priority sections, R 1y refers to the length of the yth medium-priority road segment, y = 1, 2, ..., Y, Y refers to the total number of medium-priority road segments, R 0 It refers to the total length of all road sections in the target area, and U refers to the preset coverage scoring coefficient.
6. The sensing device deployment method according to claim 5, characterized in that: U=H。 7. The sensing device deployment method according to claim 1, characterized in that: S600 also includes the following steps: S610, sorting all candidate intersections in descending order of coverage scores to obtain an intersection sorting result; S620: Determine the first T candidate intersections in the intersection ranking result as T second target intersections.
8. A sensing device deployment device, characterized in that: The sensing device arrangement device comprises: A data acquisition module, used to acquire a number of candidate intersections in the target area, a road section corresponding to each candidate intersection, a number of first target intersections, a road section corresponding to each first target intersection, the length of each road section, and a total number T of preset second sensing devices, where T is an integer greater than 0; The shortest path acquisition module is used to acquire the shortest path between the current candidate intersection and each first target intersection according to the road section corresponding to each candidate intersection and the road section corresponding to each first target intersection for any candidate intersection; A road section priority acquisition module, used to acquire the priority of each road section in each shortest path according to the length of each road section, a preset first length threshold and a preset second length threshold; A coverage score acquisition module, used to acquire the coverage score corresponding to the current candidate intersection according to the priorities of all road sections in all shortest paths; The candidate intersection traversal module is used to traverse all candidate intersections and obtain the coverage score corresponding to each candidate intersection; A target intersection screening module, used to screen out T second target intersections according to a preset total number T of second sensing devices and a coverage score corresponding to each candidate intersection; The sensing device deployment module is used to deploy a preset second sensing device at a preset position corresponding to each second target intersection.
9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the sensing device deployment method as described in any one of claims 1-7.
10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.