Ramp element generation method, model training method and device

By dividing the map line segments and processing the driving trajectory data, accurate ramp elements are generated, which solves the accuracy problem of ramp element generation in the existing technology and improves the accuracy of assisted driving and navigation for restricted mobility groups.

CN118758283APending Publication Date: 2024-10-11BAIDU COM TIMES TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410725769.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately generate ramp elements, especially when the road shape is complex and noise data exists, which affects the navigation accuracy of assisted driving and restricted mobility groups.

Method used

By dividing the map line segments, we match road segments whose slope changes are within a predetermined threshold range, generate a target trajectory sequence, and combine the driving trajectory data to process and identify ramp types, and finally generate accurate ramp elements.

Benefits of technology

It improves the accuracy of ramp elements, reduces the impact of road shape on driving trajectories, and enhances the accuracy of assisted driving and navigation for groups with limited mobility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758283A_ABST
    Figure CN118758283A_ABST
Patent Text Reader

Abstract

The invention provides a ramp element generation method and device and a model training method and device, and relates to the technical field of big data and artificial intelligence, in particular to the technical field of electronic maps, ramp analysis, auxiliary driving and the like. According to the specific implementation scheme, based on the positions of multiple road sections, target track sequences corresponding to the multiple road sections are determined from a driving track sequence; wherein the plurality of road sections are obtained by dividing map line sections corresponding to the target road, and the slope change of the road sections is within a preset threshold range; the driving track sequence is a sequential sequence of a plurality of track points collected in the process of driving along the target road; processing each target trajectory sequence to obtain ramp types corresponding to the plurality of road sections; generating ramp elements of the target road according to the ramp types and the positions of the plurality of road sections; wherein the ramp element is used for generating or updating the electronic map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of big data and artificial intelligence technology, in particular to electronic maps, ramp analysis, assisted driving and other technical fields, and specifically to a method for generating ramp elements, a model training method, a device, an electronic device, a storage medium and a program product. Background Art

[0002] Ramp information is an important parameter of road elements in electronic maps and is very important in assisted driving and pedestrian navigation.

[0003] For example, for people with limited mobility, the maximum communicable slope of an electric wheelchair or a manual wheelchair is different. The slope information provides an important reference for people with limited mobility to choose a route that is convenient for travel. For assisted driving scenarios, the vehicle needs to perform assisted positioning and safe driving based on the slope information of the current road.

[0004] Therefore, a method that can generate ramp elements with higher accuracy is urgently needed. Summary of the invention

[0005] The present disclosure provides a ramp element generation method, a model training method, a device, an electronic device, a storage medium and a program product.

[0006] According to one aspect of the present disclosure, a method for generating a ramp element is provided, comprising: determining target trajectory sequences corresponding to the plurality of road segments respectively from a driving trajectory sequence based on the positions of the plurality of road segments; wherein the plurality of road segments are road segments whose slope changes are within a predetermined threshold range obtained by dividing map segments corresponding to the target road; the driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the target road; processing each target trajectory sequence to obtain a ramp type corresponding to the plurality of road segments respectively; and generating a ramp element of the target road according to the ramp type and the positions of the plurality of road segments; wherein the ramp element is used to generate an electronic map.

[0007] According to another aspect of the present disclosure, a model training method is provided, wherein the model includes a feature extraction module and a feature recognition module; the model training method includes: based on the positions of multiple sample road sections, determining sample trajectory sequences corresponding to the multiple sample road sections respectively from the sample driving trajectory sequence; wherein the multiple sample road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map segments corresponding to the target roads; the sample driving trajectory sequence is a time series sequence of multiple trajectory points collected during driving along the sample road; using the feature extraction module, extracting speed time series features of the sample trajectory sequence; using the feature recognition module, identifying the speed time series features to obtain sample ramp types; based on the target loss function, obtaining a loss value according to the ramp type label corresponding to the sample road section and the sample ramp type; and adjusting the model parameters of the initial model based on the loss value to obtain a trained ramp recognition model.

[0008] According to another aspect of the present disclosure, a device for generating a ramp element is provided, comprising: a first determination module, for determining, based on the positions of the plurality of road sections, target trajectory sequences respectively corresponding to the plurality of road sections from a driving trajectory sequence; wherein the plurality of road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing map segments corresponding to the target road; the driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the target road; a first processing module, for processing each target trajectory sequence to obtain a ramp type respectively corresponding to the plurality of road sections; and a generation module, for generating a ramp element of the target road according to each ramp type and the positions of the plurality of road sections; wherein the ramp element is used to generate an electronic map.

[0009] According to another aspect of the present disclosure, a model training device is provided, wherein the model includes a feature extraction module and a feature recognition module; the above-mentioned model training device includes: a third determination module, which is used to determine, based on the positions of multiple sample road sections, sample trajectory sequences corresponding to multiple sample road sections from the sample driving trajectory sequence; wherein the multiple sample road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map segments corresponding to the target road; the sample driving trajectory sequence is a time series sequence of multiple trajectory points collected during driving along the sample road; a feature extraction module, which is used to extract speed time series features of the sample trajectory sequence; a feature recognition module, which is used to identify the speed time series features and obtain the sample ramp type; an acquisition module, which is used to obtain a loss value based on a target loss function according to the ramp type label corresponding to the sample road section and the sample ramp type; and an adjustment module, which is used to adjust the model parameters of the initial model based on the loss value to obtain a trained ramp recognition model.

[0010] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0011] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described above.

[0012] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method described above when executed by a processor.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0015] Figure 1 An exemplary system architecture to which a method and device for generating ramp elements according to an embodiment of the present disclosure can be applied is schematically shown;

[0016] Figure 2 A flowchart of a method for generating a ramp element according to an embodiment of the present disclosure is schematically shown;

[0017] Figure 3 A schematic diagram schematically shows a method of determining a ramp type based on a rule to generate a ramp element according to an embodiment of the present disclosure;

[0018] Figure 4 A schematic diagram schematically shows a method of determining a ramp type based on a rule to generate a ramp element according to another embodiment of the present disclosure;

[0019] Figure 5 A schematic diagram schematically shows a method of identifying a ramp type by using a ramp type identification model to generate a ramp element according to an embodiment of the present disclosure;

[0020] Figure 6 A flowchart of a method for generating a ramp element according to another embodiment of the present disclosure is schematically shown;

[0021] Figure 7 A block diagram of a device for generating a ramp element according to an embodiment of the present disclosure is schematically shown;

[0022] Figure 8 A block diagram schematically shows a model training device according to an embodiment of the present disclosure; and

[0023] Fig. 9 A block diagram of an electronic device suitable for implementing a method for generating ramp elements according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0025] In the relevant examples, the road driving status data collected by angular velocity sensors is usually used to calculate the lateral angular velocity change rate and the longitudinal angular velocity change rate, and then integrate the angular velocity change rate to obtain the road slope value.

[0026] However, this method only considers the influence of road slope on angular velocity change. Noise data is inevitably present in the data collected by the angular velocity sensor. For example, the particularity of the road shape may introduce noise data during the data collection process.

[0027] Therefore, the disclosed embodiment provides a method for generating ramp elements, which matches the target trajectory sequence corresponding to the road segment whose slope change is within a predetermined threshold range by dividing the map line segments, thereby reducing the influence of the road shape on the driving trajectory. Then, the matched target trajectory sequence is processed to determine the ramp type of multiple straight road segments. Finally, based on the ramp type and the position of the straight road segment, the ramp element of the target road is generated. Since the road data and driving trajectory data of the map are integrated, the accuracy of the ramp element can be further improved.

[0028] Figure 1 An exemplary system architecture to which the method and device for generating ramp elements according to an embodiment of the present disclosure can be applied is schematically shown.

[0029] It should be noted that Figure 1The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, an exemplary system architecture to which the method and apparatus for generating ramp elements can be applied may include a terminal device, but the terminal device may implement the method and apparatus for generating ramp elements provided by the embodiments of the present disclosure without interacting with the server.

[0030] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0031] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).

[0032] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0033] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for the content browsed by the user using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0034] It should be noted that the ramp element generation method provided in the embodiment of the present disclosure can generally be executed by the terminal device 101, 102, or 103. Accordingly, the ramp element generation device provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103.

[0035] Alternatively, the method for generating the ramp element provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, the device for generating the ramp element provided in the embodiment of the present disclosure may generally be arranged in the server 105. The method for generating the ramp element provided in the embodiment of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the device for generating the ramp element provided in the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0036] For example, the terminal devices 101, 102, and 103 can obtain the map road data and driving trajectory data of the road, and then send the obtained map road data and driving trajectory data to the server 105, and the server 105 divides the map line segments corresponding to the target road to obtain multiple road segments. Then, based on the positions of the multiple road segments, the target trajectory sequence corresponding to the multiple road segments is determined from the driving trajectory sequence. Next, the target trajectory sequence is processed to obtain the ramp types corresponding to the multiple road segments; and the ramp elements of the target road are generated according to the ramp types and the positions of the multiple road segments. Alternatively, the map road data and driving trajectory data are processed by a server or server cluster that can communicate with the terminal devices 101, 102, 103 and / or the server 105, and finally the ramp elements are generated.

[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0038] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0039] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0040] Figure 2 A flowchart of a method for generating a ramp element according to an embodiment of the present disclosure is schematically shown.

[0041] like Figure 2 As shown, the method 200 includes operations S210 to S230.

[0042] In operation S210 , target trajectory sequences respectively corresponding to the plurality of road sections are determined from the driving trajectory sequence based on the positions of the plurality of road sections.

[0043] In operation S220, each target trajectory sequence is processed to obtain ramp types corresponding to the plurality of road sections.

[0044] In operation S230 , a ramp element of the target road is generated according to each ramp type and positions of the plurality of road sections.

[0045] According to an embodiment of the present disclosure, a plurality of road segments are obtained by dividing map segments corresponding to a target road, and the plurality of road segments may all be straight line segments, or may be segments whose slope changes within a predetermined threshold range. The map segment corresponding to the target road may be drawn by a variety of line types, such as straight lines, curves, broken lines, etc. Complex line types correspond to roads with variable shapes in real road scenes. During driving, changes in road shape will have a significant impact on driving conditions, such as driving speed, and this impact will directly affect the judgment of the road ramp type. Therefore, dividing the map segment into a plurality of road segments whose slope changes within a predetermined threshold range can reduce noise data caused by changes in driving trajectories caused by changes in road shape.

[0046] According to an embodiment of the present disclosure, a driving trajectory sequence is a time sequence of multiple trajectory points collected during driving along a target road. The driving trajectory sequence may include position coordinate information and speed information of multiple trajectory points, and may also include collection time information corresponding to each trajectory point. Speed ​​information may include acceleration, angular velocity, etc.

[0047] According to an embodiment of the present disclosure, the position of a certain road section may be a coordinate set of multiple location points constituting the road section, and the position coordinates of each trajectory point may be matched with the coordinate sets of location points corresponding to multiple road sections to determine which road section the trajectory point belongs to.

[0048] According to an embodiment of the present disclosure, the position of a certain road section may also be a coordinate range of position points within the road section. Whether the coordinate position of each trajectory point belongs to the coordinate range corresponding to a certain road section can be determined to determine whether the trajectory point belongs to the road section.

[0049] According to an embodiment of the present disclosure, the target trajectory sequence may represent a trajectory sequence corresponding to a road section whose slope change is within a predetermined threshold range, such as a trajectory sequence corresponding to a straight road section.

[0050] According to an embodiment of the present disclosure, each target trajectory sequence is processed to obtain ramp types corresponding to multiple road sections. The ramp types may include: an uphill type and a downhill type.

[0051] For example, the position coordinates in the target trajectory sequence may be used, and the position coordinates may be three-dimensional coordinates. The height time series change state of the trajectory point may be determined based on the three-dimensional coordinates of the trajectory point in the target trajectory sequence. Then, the ramp type may be determined based on the height time series change state.

[0052] For example, if the height of a track point of a certain road section gradually increases over time, the road section can be determined to be an uphill section. If the height of a track point of a certain road section gradually decreases over time, the road section can be determined to be a downhill section.

[0053] According to an embodiment of the present disclosure, the ramp element may include information such as the ramp type, the slope, and the ramp distance. The ramp element may be used to generate or update an electronic map. The ramp distance may be calculated based on the endpoint position coordinates of the road segment. Similarly, the height difference and the horizontal distance difference between the two endpoints of the road segment may also be calculated based on the endpoint position coordinates of the road segment, and then, based on the trigonometric function, the slope may be calculated based on the height difference and the horizontal distance difference between the two endpoints of the road segment.

[0054] According to an embodiment of the present disclosure, by dividing the map segments, a target trajectory sequence corresponding to a road segment whose slope change is within a predetermined threshold range is matched, thereby reducing the influence of the road shape on the driving trajectory. Then, the matched target trajectory sequence is processed to determine the ramp types corresponding to the above multiple road segments. Finally, based on the ramp type and the position of the above road segment, the ramp element of the target road is generated. Since the road data and driving trajectory data of the map are integrated, the accuracy of the ramp element can be further improved.

[0055] Since the driving trajectory point sequence is collected while driving along the target road, the driving environment has a great impact on the accuracy of the trajectory point data during actual driving, especially in cycling scenarios, where wind speed, road conditions, etc. will affect the trajectory point data.

[0056] For example, when driving on a horizontal road, as the wind speed gradually increases, the driving speed may also decrease. When encountering a traffic light, the driving speed will also be adjusted in advance. When encountering road congestion, the driving speed will also be adjusted in advance. These situations will affect the accuracy of the slope feature analysis.

[0057] Therefore, in order to further improve the accuracy of the trajectory data, before performing the above operation S210, abnormal trajectory points can be determined from the driving trajectory sequence; by removing the abnormal trajectory points, a target driving trajectory sequence can be obtained; and based on the positions of multiple road sections, a target trajectory sequence can be determined from the target driving trajectory sequence.

[0058] According to an embodiment of the present disclosure, abnormal trajectory points may be determined from a formal trajectory sequence based on any statistical method.

[0059] For example, a trajectory point with abnormal position change (eg, position drift) or abnormal speed change (eg, sudden increase or sharp decrease) may be determined as an abnormal trajectory point.

[0060] For example, by calculating the mean distance between adjacent trajectory points and comparing the change in the distance between adjacent trajectory points with the mean distance between all adjacent trajectory points, when the distance between trajectory point P1 and adjacent trajectory point P2, and the distance between trajectory point P2 and adjacent trajectory point P3, are both greater than the mean distance, it can be determined that a displacement offset occurs at trajectory point P2, and trajectory point P2 can be determined to be an abnormal trajectory point.

[0061] For example, by calculating the speed variance of adjacent trajectory points, when the speed variance of a certain trajectory point and the adjacent trajectory points exceeds a predetermined variance range, it can be determined that the speed change at the trajectory point is abnormal, and the trajectory point can be determined to be an abnormal trajectory point.

[0062] According to an embodiment of the present disclosure, a target driving trajectory sequence can be obtained by removing abnormal trajectory points. Then, based on the positions of multiple road sections, the trajectory points in the target driving trajectory sequence are matched with the position points in the road section to determine the target trajectory sequence corresponding to each road section.

[0063] According to an embodiment of the present disclosure, by removing abnormal trajectory points, the accuracy of trajectory point data in the target trajectory sequence can be improved, thereby further improving the accuracy of ramp elements.

[0064] Abnormal trajectory points caused by acquisition noise or road environment noise can be screened out through statistical methods, but abnormal trajectory data generated under abnormal road conditions cannot be effectively identified.

[0065] Therefore, the driving trajectory sequence may also include driving scenes corresponding to the plurality of trajectory points. Determining an abnormal trajectory point from the driving trajectory sequence may include the following operations: based on a predetermined abnormal driving scene, determining an abnormal trajectory point corresponding to the predetermined abnormal driving scene from the driving trajectory sequence.

[0066] According to an embodiment of the present disclosure, the predetermined abnormal driving scene may include a traffic light scene and a congestion scene. The traffic light scene information may include: the distance range from the traffic light location, the traffic light switching period, etc.; the congestion scene information may include the period when the traffic is in a congested state.

[0067] According to an embodiment of the present disclosure, the driving trajectory sequence includes P1 to P n The information of each trajectory point can be used to filter out abnormal points corresponding to traffic light scenes and congestion scenes from the driving trajectory sequence based on the matching results of the driving scenes.

[0068] For example: trajectory point P iThe position of the track point P is within the distance range of the traffic light position. i Determined as an abnormal trajectory point. Trajectory point P j The collection time is in the period of traffic congestion, and the trajectory point P j Determined as an abnormal trajectory point.

[0069] For example, for a time series trajectory sequence within a certain period of time, when the red light turns on, the driving object is a certain distance away from the intersection. However, in order to reduce the waiting time for the red light at the intersection, the object usually starts to slow down when it sees the red light, so that when it reaches the intersection, the red light has turned green. Therefore, the deceleration behavior of the driving object is not necessarily caused by the road slope. The trajectory points within this period will affect the accuracy of the slope type determination, and the trajectory points within this period can be regarded as abnormal trajectory points.

[0070] Similarly, when the driving object is far away from the intersection and sees that the green light is about to turn red, it starts to accelerate. Therefore, the acceleration behavior of the driving object is not necessarily caused by the road slope. The trajectory points in this period will affect the accuracy of the slope type determination, and the trajectory points in this period can be regarded as abnormal trajectory points.

[0071] Therefore, the traffic light switching period and the distance range between the driving object and the traffic light position can be taken as comprehensive considerations to determine abnormal trajectory points. For example, the duration of the traffic light switching period can be configured as 15 seconds, and the historical driving speed of the driving object can be used as a reference to calculate the driving distance s within 15 seconds. Then, the trajectory point whose distance to the traffic light position is less than or equal to s and whose collection time and the time when the traffic light switches are within 15 seconds can be determined as an abnormal trajectory point.

[0072] According to the embodiments of the present disclosure, by removing abnormal trajectory points corresponding to abnormal driving scenarios, the influence of noise data generated under abnormal road conditions on the accuracy of trajectory point data can be reduced, further improving the accuracy of ramp elements.

[0073] Based on the foregoing description, it can be known that the change in road shape will have a significant impact on the driving state, such as driving speed, and this impact will directly affect the judgment of the road slope type.

[0074] Therefore, in order to reduce the influence of the road shape on the determination of the ramp type, the map line segment corresponding to the target road can be divided into a plurality of line segments whose slope changes are within a predetermined threshold range. Exemplarily, the following operations can be included: obtaining slope change information corresponding to the map line segment according to the coordinates of a plurality of connection points; determining a segmentation point from the plurality of connection points according to the slope change information; and dividing the map line segment into a plurality of road segments based on at least one segmentation point.

[0075] According to an embodiment of the present disclosure, a map line segment includes a plurality of sub-line segments connected by a plurality of connection points, and the line types of the plurality of sub-line segments may not be completely the same, for example, they may include a straight line segment, a broken line segment, a curved line segment, and the like.

[0076] For example: a map line segment can be from Q1 to Q j As a connection point composed of multiple sub-segments. Connection points Q1 ~ Q i The slope of the sub-line segment between two adjacent connection points is k, and the connection point Q i ~Q j The slope of the subline segment between two adjacent connection points in is k'. When the difference between the slope k and the slope k' is greater than a predetermined threshold, it can be determined that Q i Based on the split point, the map segment can be divided into two straight line segments.

[0077] According to an embodiment of the present disclosure, a map segment may be divided into a plurality of straight road segments, which may reduce noise data caused by changes in driving trajectories due to changes in road shapes.

[0078] Reference below Figure 3 to Figure 5 , combined with specific embodiments Figure 2 The method shown is further explained.

[0079] Figure 3 The schematic diagram schematically shows a method of determining the ramp type based on rules to generate ramp elements according to an embodiment of the present disclosure.

[0080] like Figure 3 As shown, in the embodiment 300, the road segment L1 303 and the road segment L2 304 can be obtained by dividing the map line segment 301. Based on the position of the road segment L1, the target track sequence Tr1 305 can be determined from the driving track sequence 302. Similarly, based on the position of the road segment L2, the target track sequence Tr2 306 can be determined from the driving track sequence 302.

[0081] According to an embodiment of the present disclosure, the target trajectory sequence may be a position sequence of the target trajectory. Processing the target trajectory sequence to obtain ramp types corresponding to the plurality of road sections may include the following operations: processing the position sequence of each target trajectory to obtain a speed sequence of each target trajectory; and determining the ramp type based on the speed change state of adjacent trajectory points in the speed sequence of each target trajectory.

[0082] For example, based on the positions of multiple trajectory points in the target trajectory sequence and the acquisition times of the corresponding trajectory points, a speed sequence of the target trajectory corresponding to the position sequence of the target trajectory can be calculated.

[0083] According to an embodiment of the present disclosure, the speed change state may represent the instantaneous speed, the speed change rate, the acceleration, or the acceleration change rate.

[0084] The speed change rate or acceleration change rate can be calculated according to the time series of the speed, and then the ramp type is determined based on the speed change rate and the acceleration change rate.

[0085] According to an embodiment of the present disclosure, the ramp type may be determined based on a predetermined rule, and the predetermined rule may include: speed change patterns corresponding to different ramp types.

[0086] For example: in response to the speed change state of the adjacent track point being ascending, the slope type is determined to be downhill; and in response to the speed change state of the adjacent track point being descending, the slope type is determined to be uphill.

[0087] For example: if the speed gradually increases, or the acceleration gradually increases, or the speed change rate gradually increases, or the acceleration change rate gradually increases, the slope type can be determined as downhill.

[0088] For example: if the speed gradually decreases, or the acceleration gradually decreases, or the speed change rate gradually decreases, or the acceleration change rate gradually decreases, the slope type can be determined as uphill.

[0089] For example, if the speed changes from rising to falling, the ramp type can be determined as falling and then rising. If the speed changes from falling to rising, the ramp type can be determined as rising and then falling.

[0090] like Figure 3 As shown, based on the predetermined rule, the ramp type Ty1310 can be determined according to the speed sequence V1307, and the ramp type Ty2309 can be determined according to the speed sequence V2308. Then, by performing operation S310, it is determined whether the ramp types are the same? If so, the road section L1303 and the road section L2304 are aggregated into the target slope type road section 311. Then, the ramp element Fa1312 is calculated based on the relevant data of the target slope type road section 311. If not, the ramp element Fa2314 is calculated based on the relevant data of the Ty2 slope type road section 313; and the ramp element Fa3316 is calculated based on the relevant data of the Ty1 slope type road section 315.

[0091] According to the embodiments of the present disclosure, the ramp type is determined based on a predetermined rule, the determination logic is simple, the recognition speed of the ramp type can be improved, and it is suitable for dynamic ramp recognition scenarios.

[0092] Based on the foregoing description, the abnormal trajectory points in the driving trajectory are filtered out through statistical methods and predetermined abnormal scenarios, which can improve the recognition accuracy of the ramp type while quickly identifying the ramp type.

[0093] However, the actual road environment is complex, and the speed change pattern defined in the predetermined rules is relatively simple, which cannot meet the needs of all road environments. Therefore, in order to further improve the recognition accuracy of ramp types, for some special road environments, such as circular ramps, the data with higher confidence can be selected from the judgment results of the predetermined rules based on the information of the angular velocity sensor to generate ramp elements.

[0094] Therefore, the above method may also include: obtaining ramp information corresponding to multiple road sections respectively by processing the angular velocity of each trajectory point in the angular velocity sequence of the target trajectory; and determining the ramp types corresponding to the multiple road sections respectively from the initial ramp types corresponding to the multiple road sections based on the ramp information; wherein the initial ramp type is determined based on the speed change state of adjacent trajectory points in the speed sequence of the target trajectory.

[0095] Figure 4 The schematic diagram schematically shows a method of determining the type of ramp based on rules to generate ramp elements according to another embodiment of the present disclosure.

[0096] like Figure 4 As shown, in embodiment 400, road data 411, such as road segments in a map, are divided from a map data dimension 410 to obtain road segments 412 of shape point granularity.

[0097] From the big data platform dimension 420, the driving trajectory data 421 is filtered for abnormal points to obtain the target driving trajectory data 422. The slope value 424 can be obtained by integrating the angular velocity change rate in the sensor data 423. Through position matching and rule matching, the initial ramp type 430 of multiple road sections can be obtained.

[0098] Then, the initial ramp types 430 of the plurality of road sections may be checked and screened based on the slope value 424 to obtain the ramp type 440 of the target road section.

[0099] For example, the slope value of section L1 is +5°, and the initial ramp type determined based on the rule is uphill. It can be determined that the initial ramp type determined based on the rule is accurate, and the data related to section L1 can be retained for the generation of ramp elements.

[0100] For example, the slope value of section L2 is +10°, and the initial ramp type determined based on the rule is downhill. It can be determined that the initial ramp type determined based on the rule is inaccurate, and the data related to section L2 can be deleted for the generation of ramp elements.

[0101] According to an embodiment of the present disclosure, the target slope road section 311 may represent a slope road section with a high confidence level that is screened out after the slope value verification. The relevant data of the target slope road section 311 is then used to calculate the ramp element Fa1 312 .

[0102] According to the embodiments of the present disclosure, by introducing sensor data to verify and screen the ramp type data obtained by integrating map data and driving trajectory point data, the accuracy of ramp type recognition can be further improved, thereby further improving the accuracy of ramp elements.

[0103] Since both the driving trajectory sequence and sensor data are collected, it is inevitable that noise data will be introduced. Therefore, the recognition accuracy of the ramp type can be further improved by introducing a machine learning model to utilize map data and trajectory point data.

[0104] According to an embodiment of the present disclosure, processing a target trajectory sequence to obtain ramp types corresponding to multiple road sections may include the following operations: extracting speed timing features of a speed sequence of the target trajectory using a ramp type recognition model; and identifying the speed timing features using the ramp type recognition model to obtain the ramp type.

[0105] Figure 5 The schematic diagram schematically shows a method of identifying a ramp type by using a ramp type identification model to generate a ramp element according to an embodiment of the present disclosure.

[0106] like Figure 5 As shown, in embodiment 500, speed sequence V1 307 and speed sequence V2 308 may be input into ramp type recognition model 510. Ramp type recognition model 510 may be trained by using the speed sequence of the sample road section screened in embodiment 400 and the ramp type of the sample road section, and taking the ramp type of the sample road section as the sample label.

[0107] For example: the ramp type recognition model 510 can be used to extract the speed time series features of the speed sequence V1307 and the speed sequence V2308 respectively, and then the speed time series features of the speed sequence V1307 and the speed sequence V2308 are recognized respectively, and the ramp type Ty1310 corresponding to the road section L1303 and the ramp type Ty2309 corresponding to the road section L2304 are output.

[0108] According to the embodiment of the present disclosure, other operations in embodiment 500 are the same as those in embodiment 300 and are not described herein in detail.

[0109] According to an embodiment of the present disclosure, the recognition accuracy of ramp types is further improved by introducing a machine learning model and utilizing the features of trajectory point data matched with map data.

[0110] According to an embodiment of the present disclosure, generating ramp information of a target road according to a ramp type and positions of a plurality of road sections may include the following operations: according to the ramp type, aggregating adjacent road sections of the same ramp type to obtain a target slope type road section; determining a starting position and an end position corresponding to the target slope type road section from the positions of the plurality of road sections; and generating a ramp element corresponding to the target slope type road section according to the starting position and the end position.

[0111] For example, if the slope type of section L1 is uphill, the slope type of section L2 is uphill, and the end position of section L1 is the same as the starting position of section L2, section L1 and section L2 can be connected to obtain a target section with an uphill slope. Then, based on the starting position and the end position of the target slope section, the slope element information such as the slope distance, slope, and ramp height of the target slope section is generated based on the trigonometric function.

[0112] According to an embodiment of the present disclosure, generating a ramp element corresponding to a target slope type road section according to a starting point position and an end point position may include the following operations: generating a ramp distance and a slope section height according to the starting point position and the end point position; and generating slope information according to the ramp distance and the slope section height.

[0113] For example: the coordinates of the starting position are (x1, y1), and the end position is (x2, y2). The difference between the vertical coordinates of the end position and the starting position can be the height of the slope, and the difference between the horizontal coordinates of the end position and the starting position can be the horizontal distance difference. Based on trigonometric functions, the ramp distance and slope information can be calculated.

[0114] According to the embodiments of the present disclosure, since the aggregated road segment may not be a straight line during the aggregation process of road segments with the same slope type, the end point positions and starting point positions of multiple road segments with the same slope type to be aggregated can be fitted, and the fitted line segment can be used as the target road segment. When the number of fitted line segments is large, the error introduced by fitting is acceptable.

[0115] According to an embodiment of the present disclosure, by aggregating roads of the same slope type to obtain a target section and then calculating the slope information of the aggregated section, the amount of data processing in the slope information calculation process can be reduced within the range allowed by the ramp element accuracy.

[0116] According to the embodiments of the present disclosure, for roads of special shapes, such as circular roads, S-shaped roads, or irregularly shaped roads with many turning points, in the process of aggregating road sections of the same slope type, as the distance of the ramp increases, the introduced error also increases. In order to further improve the accuracy of the ramp elements, in the process of aggregating roads of special shapes, from multiple road sections to be aggregated, based on the shape of the road in the map data, the road section located at the shape turning point can be determined. The road sections at the shape turning point can be aggregated separately, and the road sections at non-shape turning points can be aggregated separately. Then, the aggregated road sections are smoothed to maintain the original road shape and further reduce the error introduced in the aggregation process.

[0117] According to the embodiments of the present disclosure, a threshold value for the number of aggregated road segments may be pre-set, and road segments of the same slope type may be segmented and aggregated according to the predetermined threshold value for the number of aggregated road segments to obtain aggregated sub-road segments. Then, the slope may be calculated based on the starting and ending positions of adjacent sub-road segments. When the slope change of adjacent sub-road segments exceeds a predetermined threshold range, the adjacent sub-road segments are connected by smoothing the adjacent sub-road segments; when the slope change of adjacent sub-road segments does not exceed the predetermined threshold range, the adjacent sub-road segments are directly connected.

[0118] Figure 6 A flowchart of a method for generating a ramp element according to another embodiment of the present disclosure is schematically shown.

[0119] like Figure 6 As shown, the method 600 may include operations S610 to S650.

[0120] In operation S610 , based on the positions of the plurality of sample road sections, sample trajectory sequences respectively corresponding to the plurality of sample road sections are determined from the sample driving trajectory sequence.

[0121] In operation S620, a feature extraction module is used to extract speed time series features of the sample trajectory sequence.

[0122] In operation S630, a feature recognition module is used to recognize the speed time series feature to obtain a sample ramp type.

[0123] In operation S640 , a loss value is obtained based on the target loss function and according to the ramp type label corresponding to the sample road section and the sample ramp type.

[0124] In operation S650, model parameters of the initial model are adjusted based on the loss value to obtain a trained slope recognition model.

[0125] According to an embodiment of the present disclosure, the plurality of sample road segments are road segments whose slope changes are within a predetermined threshold range obtained by dividing the map line segments corresponding to the target road. The method for dividing the sample road segments is the same as the method for dividing the map line segments in the ramp element generation method described above, and will not be described in detail here.

[0126] According to an embodiment of the present disclosure, the sample driving trajectory sequence is a time series sequence of multiple trajectory points collected during driving along the sample road. The definition scope of the sample driving trajectory sequence is the same as that of the driving trajectory sequence described above, and will not be repeated here.

[0127] According to an embodiment of the present disclosure, the target loss function may be any loss function used to calculate the loss of the classification model, such as a cross entropy loss function. The embodiment of the present disclosure does not specifically limit this.

[0128] According to the embodiments of the present disclosure, since the sample trajectory sequence is a fusion of map data and driving trajectory data, it is beneficial for the model to learn both map features and trajectory features during the training process, thereby improving the accuracy of model fitting and predicting ramp types.

[0129] According to an embodiment of the present disclosure, the sample trajectory sequence includes a speed sequence of the sample trajectory and an angular velocity sequence of the sample trajectory. The above training method may also include the following operations: determining the initial sample ramp type based on the speed change state of adjacent trajectory points in the speed sequence of the sample trajectory; obtaining initial sample ramp information corresponding to multiple sample sections by processing the angular velocity of each trajectory point in the angular velocity sequence of the sample trajectory; and determining the speed sequence of the target sample trajectory for training the initial model from the speed sequence of the sample trajectory by matching the initial sample ramp information with the initial sample ramp type.

[0130] For example, based on a predetermined rule, a section where the speed of adjacent track points changes to a gradually rising section can be determined as a downhill section, and a section where the speed of adjacent track points changes to a gradually falling section can be determined as an uphill section.

[0131] According to an embodiment of the present disclosure, the slope value of the road section can be obtained by calculating the angular velocity change rate of each trajectory point and then integrating the angular velocity change rate.

[0132] According to an embodiment of the present disclosure, the confidence of the initial sample ramp type is judged based on the slope value, so as to screen out the speed sequence of the sample trajectory with high confidence as the training sample, thereby improving the model output accuracy.

[0133] Figure 7 A block diagram of a device for generating a ramp element according to an embodiment of the present disclosure is schematically shown.

[0134] like Figure 7 As shown, the device 700 may include: a first determining module 710 , a first processing module 720 and a generating module 730 .

[0135] The first determination module 710 is used to determine, based on the positions of the multiple road sections, a target trajectory sequence corresponding to the multiple road sections from the driving trajectory sequence; wherein the multiple road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map segments corresponding to the target road; and the driving trajectory sequence is a time series sequence of multiple trajectory points collected during driving along the target road.

[0136] The first processing module 720 is used to process each target trajectory sequence to obtain the ramp types corresponding to the multiple road sections.

[0137] The generation module 730 is used to generate ramp elements of the target road according to the types of ramps and the positions of multiple road sections; wherein the ramp elements are used to generate or update the electronic map.

[0138] According to an embodiment of the present disclosure, the target trajectory sequence includes: a position sequence of the target trajectory. The first processing module includes: a processing submodule and a first determining submodule. The processing submodule is used to process the position sequence of each target trajectory to obtain a speed sequence of each target trajectory. The first determining submodule is used to determine the ramp type based on the speed change state of adjacent trajectory points in the speed sequence of each target trajectory.

[0139] According to an embodiment of the present disclosure, the first determination submodule includes: a first determination unit and a second determination unit. The first determination unit is used to determine that the type of the ramp is downhill in response to the speed change state of the adjacent trajectory point being ascending. The second determination unit is used to determine that the type of the ramp is uphill in response to the speed change state of the adjacent trajectory point being descending.

[0140] According to an embodiment of the present disclosure, the target trajectory sequence includes an angular velocity sequence of the target trajectory; the above-mentioned device also includes: a second processing module and a second determination module. The second processing module is used to obtain ramp information corresponding to multiple road sections by processing the angular velocity of each trajectory point in the angular velocity sequence of the target trajectory. The second determination module is used to determine the ramp types corresponding to the multiple road sections from the initial ramp types corresponding to the multiple road sections based on the ramp information; wherein the initial ramp type is determined based on the speed change state of adjacent trajectory points in the speed sequence of the target trajectory.

[0141] According to an embodiment of the present disclosure, the target trajectory sequence includes: a speed sequence of the target trajectory. The first processing module includes: an extraction submodule and an identification module. The extraction submodule is used to extract the speed time series features of the speed sequence of the target trajectory. The identification submodule is used to identify the speed time series features to obtain the ramp type.

[0142] According to an embodiment of the present disclosure, the first determination module includes: a second determination submodule, a removal submodule and a third determination submodule. The second determination submodule is used to determine abnormal trajectory points from the driving trajectory sequence. The removal submodule is used to obtain a target driving trajectory sequence by removing abnormal trajectory points. The third determination submodule is used to determine a target trajectory sequence from the target driving trajectory sequence based on the positions of multiple road sections.

[0143] According to an embodiment of the present disclosure, the driving trajectory sequence includes: driving scene information corresponding to a plurality of trajectory points. The second determination submodule includes: a third determination unit, configured to determine an abnormal trajectory point corresponding to a predetermined abnormal driving scene from the driving trajectory sequence based on the predetermined abnormal driving scene.

[0144] According to an embodiment of the present disclosure, the generation module includes: an aggregation submodule, a fourth determination submodule and a generation submodule. The aggregation submodule is used to aggregate multiple road sections according to the ramp type to obtain a target slope type road section. The fourth determination submodule is used to determine the starting position and the end position corresponding to the target slope type road section from the positions of adjacent road sections of the same ramp type. The generation submodule is used to generate a ramp element corresponding to the target slope type road section according to the starting position and the end position.

[0145] According to an embodiment of the present disclosure, the generation submodule includes: a first generation unit and a second generation unit. The first generation unit is used to generate the ramp distance and the slope height according to the starting position and the end position. The second generation unit is used to generate the slope information according to the ramp distance and the slope height.

[0146] According to an embodiment of the present disclosure, a map segment includes a plurality of sub-segments connected by a plurality of connection points. The first determination module includes: an acquisition submodule, a fifth determination submodule, and a division submodule. The acquisition submodule is used to obtain slope change information corresponding to the map segment according to the coordinates of the plurality of connection points. The fifth determination submodule is used to determine a segmentation point from the plurality of connection points according to the slope change information, wherein the slope change of the plurality of sub-segments connected to the segmentation point is greater than a predetermined threshold. The division submodule is used to divide the map segment into a plurality of road segments based on at least one segmentation point.

[0147] Figure 8 A block diagram of a model training device according to an embodiment of the present disclosure is schematically shown.

[0148] like Figure 8 As shown, the training device 800 may include: a third determination module 810 , a feature extraction module 820 , a feature recognition module 830 , an acquisition module 840 and an adjustment module 850 .

[0149] The third determination module 810 is used to determine, from the sample driving trajectory sequence, sample trajectory sequences corresponding to the multiple sample road sections respectively based on the positions of the multiple sample road sections; wherein the multiple sample road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map segments corresponding to the target road; and the sample driving trajectory sequence is a time series sequence of multiple trajectory points collected during driving along the sample road.

[0150] The feature extraction module 820 is used to extract the speed time series features of the sample trajectory sequence.

[0151] The feature recognition module 830 is used to recognize the speed time series feature and obtain the sample ramp type.

[0152] The acquisition module 840 is used to obtain a loss value based on the target loss function, according to the ramp type label corresponding to the sample road section and the sample ramp type.

[0153] The adjustment module 850 is used to adjust the model parameters of the initial model based on the loss value to obtain a trained ramp recognition model.

[0154] According to an embodiment of the present disclosure, the sample trajectory sequence includes a velocity sequence of the sample trajectory and an angular velocity sequence of the sample trajectory; the above-mentioned device also includes: a fourth determination module, a third processing module and a matching module.

[0155] The fourth determination module is used to determine the initial sample ramp type based on the speed change state of adjacent trajectory points in the speed sequence of the sample trajectory.

[0156] The third processing module is used to obtain initial sample ramp information corresponding to multiple sample road sections by processing the angular velocity of each trajectory point in the angular velocity sequence of the sample trajectory.

[0157] The matching module is used to determine the speed sequence of the target sample trajectory used for training the initial model from the speed sequence of the sample trajectory by matching the initial sample ramp information with the initial sample ramp type.

[0158] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0159] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0160] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0161] According to an embodiment of the present disclosure, a computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.

[0162] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0163] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0164] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0165] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as a ramp element generation method or a model training method. For example, in some embodiments, the ramp element generation method or the model training method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the ramp element generation method or the model training method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the ramp element generation method or the model training method in any other appropriate manner (eg, by means of firmware).

[0166] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0167] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0168] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0169] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0170] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0171] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.

[0172] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0173] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a ramp element, comprising: Based on the positions of the plurality of road sections, a target trajectory sequence corresponding to the plurality of road sections is determined from the driving trajectory sequence; wherein the plurality of road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map line segments corresponding to the target road; and the driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the target road; Processing each of the target trajectory sequences to obtain ramp types corresponding to the multiple road sections respectively; and The ramp elements of the target road are generated according to the types of the ramps and the positions of the plurality of road sections; wherein the ramp elements are used to generate or update an electronic map.

2. The method according to claim 1, wherein: The target trajectory sequence includes: a position sequence of the target trajectory; The processing of each of the target trajectory sequences to obtain the ramp types corresponding to the multiple road sections respectively includes: Processing the position sequence of each target trajectory to obtain a velocity sequence of each target trajectory; and The ramp type is determined based on the speed change states of adjacent trajectory points in the speed sequence of each target trajectory.

3. The method according to claim 2, wherein: The determining the ramp type based on the speed change state of adjacent trajectory points in the speed sequence of each target trajectory includes: In response to the speed change state of the adjacent track point being rising, determining the slope type to be downhill; and In response to the speed change state of the adjacent trajectory point being descending, the slope type is determined to be uphill.

4. The method according to claim 2 or 3, wherein: The target trajectory sequence includes an angular velocity sequence of the target trajectory; the method further includes: By processing the angular velocity of each track point in the angular velocity sequence of the target track, the ramp information corresponding to each of the plurality of road sections is obtained; and Based on the ramp information, the ramp types respectively corresponding to the multiple road sections are determined from the initial ramp types corresponding to the multiple road sections; wherein the initial ramp type is determined based on the speed change state of adjacent trajectory points in the speed sequence of the target trajectory.

5. The method according to claim 1, wherein: The target trajectory sequence includes: a speed sequence of the target trajectory; The processing of the target trajectory sequence to obtain the ramp types corresponding to the multiple road sections includes: Extracting speed time series features of the speed sequence of the target trajectory using a ramp type recognition model; and The speed time series characteristics are identified using a ramp type identification model to obtain the ramp type.

6. The method according to claim 1, wherein: The step of determining a target trajectory sequence corresponding to the plurality of road sections from a driving trajectory sequence based on the positions of the plurality of road sections comprises: Determining abnormal trajectory points from the driving trajectory sequence; By removing the abnormal trajectory points, a target driving trajectory sequence is obtained; and The target trajectory sequence is determined from the target driving trajectory sequence based on the positions of the plurality of road segments.

7. The method according to claim 6, wherein: The driving trajectory sequence includes: driving scene information corresponding to a plurality of trajectory points; The step of determining an abnormal trajectory point from the driving trajectory sequence comprises: Based on a predetermined abnormal driving scenario, an abnormal trajectory point corresponding to the predetermined abnormal driving scenario is determined from the driving trajectory sequence.

8. The method according to claim 1, wherein: The step of generating the ramp information of the target road according to the ramp type and the positions of the plurality of road sections includes: According to the ramp type, adjacent road sections of the same ramp type are aggregated to obtain a target slope type road section; Determining a starting point position and an end point position corresponding to the target slope type road section from the positions of the plurality of road sections; and A ramp element corresponding to the target slope type road section is generated according to the starting point position and the end point position.

9. The method according to claim 8, wherein: The step of generating a ramp element corresponding to the target slope section according to the starting point position and the end point position includes: Generate a ramp distance and a ramp height according to the starting position and the end position; and The slope information is generated according to the slope distance and the slope section height.

10. The method according to claim 1, wherein: The map line segment includes a plurality of sub-line segments connected by a plurality of connection points; The multiple road segments are road segments whose slope changes are within a predetermined threshold range obtained by dividing a map line segment corresponding to the target road, including: Obtaining slope change information corresponding to the map line segment according to the coordinates of the plurality of connection points; Determine a segmentation point from the plurality of connection points according to the slope change information, wherein the slope change of the plurality of sub-line segments connected to the segmentation point is greater than a predetermined threshold; Based on the at least one segmentation point, the map line segment is divided into the plurality of road segments.

11. A model training method, wherein the model comprises a feature extraction module and a feature recognition module; the method comprises: Based on the positions of the plurality of sample road sections, sample trajectory sequences corresponding to the plurality of sample road sections are determined from the sample driving trajectory sequence; wherein the plurality of sample road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map line segments corresponding to the target road; the sample driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the sample road; Utilizing the feature extraction module, extracting the speed time series features of the sample trajectory sequence; Using the feature recognition module, the speed time series feature is recognized to obtain the sample ramp type; Based on the target loss function, obtaining a loss value according to the ramp type label corresponding to the sample road section and the sample ramp type; and Based on the loss value, the model parameters of the initial model are adjusted to obtain a trained ramp recognition model.

12. The method according to claim 11, wherein the sample trajectory sequence comprises a velocity sequence of the sample trajectory and an angular velocity sequence of the sample trajectory; the method further comprises: Determining an initial sample ramp type based on a speed change state of adjacent trajectory points in a speed sequence of the sample trajectory; By processing the angular velocity of each trajectory point in the angular velocity sequence of the sample trajectory, initial sample ramp information corresponding to the plurality of sample road sections is obtained; as well as By matching the initial sample ramp information with the initial sample ramp type, a speed sequence of a target sample trajectory for training the initial model is determined from the speed sequence of the sample trajectory.

13. A device for generating a ramp element, comprising: A first determination module is used to determine, based on the positions of a plurality of road sections, a target trajectory sequence corresponding to the plurality of road sections respectively from a driving trajectory sequence; wherein the plurality of road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing a map line segment corresponding to a target road; and the driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the target road; A first processing module is used to process each of the target trajectory sequences to obtain the ramp types corresponding to the multiple road sections respectively; and A generation module is used to generate ramp elements of the target road according to the types of each ramp and the positions of the multiple road sections; wherein the ramp elements are used to generate or update an electronic map.

14. The device according to claim 13, wherein: The target trajectory sequence includes: a position sequence of the target trajectory; The first processing module comprises: a processing submodule, configured to process the position sequence of each target trajectory to obtain a velocity sequence of each target trajectory; and The first determination submodule is used to determine the ramp type based on the speed change state of adjacent trajectory points in the speed sequence of each target trajectory.

15. The device according to claim 14, wherein: The first determining submodule includes: A first determining unit, configured to determine that the type of the slope is downhill in response to the speed change state of the adjacent trajectory point being ascending; and The second determining unit is configured to determine that the slope type is uphill in response to the speed change state of the adjacent trajectory point being descending.

16. The device according to claim 14 or 15, wherein: The target trajectory sequence includes an angular velocity sequence of the target trajectory; the device also includes: a second processing module, configured to obtain ramp information corresponding to the plurality of road sections respectively by processing the angular velocity of each trajectory point in the angular velocity sequence of the target trajectory; and A second determination module is used to determine, based on the ramp information, ramp types corresponding to the multiple road sections from initial ramp types corresponding to the multiple road sections; wherein the initial ramp type is determined based on a speed change state of adjacent trajectory points in a speed sequence of the target trajectory.

17. The device according to claim 13, wherein: The target trajectory sequence includes: a speed sequence of the target trajectory; The first processing module comprises: an extraction submodule, for extracting the speed time series characteristics of the speed sequence of the target trajectory by using a ramp type recognition model; and The identification submodule is used to identify the speed time series characteristics by using the ramp type identification model to obtain the ramp type.

18. The device according to claim 13, wherein: The first determining module comprises: A second determination submodule, used to determine abnormal trajectory points from the driving trajectory sequence; a removal submodule, configured to obtain a target driving trajectory sequence by removing the abnormal trajectory points; and The third determining submodule is used to determine the target trajectory sequence from the target driving trajectory sequence based on the positions of the multiple road sections.

19. The method according to claim 18, wherein: The driving trajectory sequence includes: driving scene information corresponding to a plurality of trajectory points; The second determining submodule includes: The third determining unit is used to determine, based on a predetermined abnormal driving scenario, an abnormal trajectory point corresponding to the predetermined abnormal driving scenario from the driving trajectory sequence.

20. The device according to claim 13, wherein: The generation module comprises: An aggregation submodule, for aggregating adjacent sections of the same ramp type according to the ramp type to obtain a target slope type section; a fourth determination submodule, configured to determine a starting position and an end position corresponding to the target slope type road section from the positions of the plurality of road sections; and The generation submodule is used to generate a ramp element corresponding to the target slope type road section according to the starting point position and the end point position.

21. The method according to claim 20, wherein: The generating submodule comprises: A first generating unit, configured to generate a ramp distance and a ramp height according to the starting position and the end position; and The second generating unit is used to generate slope information according to the ramp distance and the slope section height.

22. The device according to claim 13, wherein: The map line segment includes a plurality of sub-line segments connected by a plurality of connection points; The first determining module comprises: An obtaining submodule, used for obtaining slope change information corresponding to the map line segment according to the coordinates of the plurality of connection points; a fifth determination submodule, configured to determine a segmentation point from the plurality of connection points according to the slope change information, wherein a slope change of a plurality of sub-line segments connected to the segmentation point is greater than a predetermined threshold; The division submodule is used to divide the map line segment into the multiple road segments based on the at least one segmentation point.

23. A model training device, the model comprising a feature extraction module and a feature recognition module; the device comprising: A third determination module is used to determine, based on the positions of the plurality of sample road sections, sample trajectory sequences corresponding to the plurality of sample road sections respectively from the sample driving trajectory sequence; wherein the plurality of sample road sections are road sections whose slope changes are within a predetermined threshold range obtained by dividing the map line segments corresponding to the target road; and the sample driving trajectory sequence is a time series sequence of a plurality of trajectory points collected during driving along the sample road; The feature extraction module is used to extract the speed time series features of the sample trajectory sequence; The feature recognition module is used to recognize the speed time series feature to obtain the sample ramp type; an acquisition module, configured to obtain a loss value based on a target loss function, according to a ramp type label corresponding to the sample road section and the sample ramp type; and An adjustment module is used to adjust the model parameters of the initial model based on the loss value to obtain a trained ramp recognition model.

24. The device according to claim 23, wherein the sample trajectory sequence comprises a velocity sequence of the sample trajectory and an angular velocity sequence of the sample trajectory; the device further comprises: A fourth determination module, configured to determine an initial sample ramp type based on a speed change state of adjacent trajectory points in a speed sequence of the sample trajectory; A third processing module, configured to obtain initial sample ramp information corresponding to the plurality of sample road sections by processing the angular velocity of each trajectory point in the angular velocity sequence of the sample trajectory; as well as A matching module is used to determine a speed sequence of a target sample trajectory for training the initial model from the speed sequence of the sample trajectory by matching the initial sample ramp information with the initial sample ramp type.

25. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.

26. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.

27. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 12.