Road status detection method, device and equipment

By obtaining vehicle driving routes and adjacent road images, the road status is identified, which solves the problem of low accuracy of manual detection and achieves efficient and accurate detection of road status.

CN112926425BActive Publication Date: 2024-09-27DITU (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110183962.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-10
Publication Date
2024-09-27
Estimated Expiration
2041-02-10

AI Technical Summary

Technical Problem

In the existing technology, when manually determining road status based on vehicle driving information, the accuracy is poor and cannot accurately reflect the true status of the road, resulting in low accuracy of road status detection.

Method used

By obtaining the driving route of the vehicle, the suspected abnormal road section is determined, and the adjacent road images of the road section are used to identify the road status using a deep learning model to improve the accuracy of road status detection.

Benefits of technology

It improves the accuracy of road status detection, enables real-time and accurate identification of road status, reduces data traffic and processing time, saves costs, and enables rapid updates to road status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112926425B
    Figure CN112926425B
Patent Text Reader

Abstract

The embodiments of the present application provide a road state detection method, device and equipment. The road state detection method includes: obtaining the driving route of each vehicle including the same road section in the recommended route; determining the suspected abnormal road section in the same road section according to the driving route of each vehicle; obtaining the target image of the adjacent road of the suspected abnormal road section; and determining the road state of the suspected abnormal road section according to the target image. In the present application, the road state of the suspected abnormal road section is determined with reference to the target image that can reflect the real state of the suspected abnormal road section, which can improve the accuracy of the determined road state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of road state detection, and in particular, to a road state detection method, device and equipment. Background Art

[0002] Currently, the server can plan a route for the vehicle so that the vehicle can travel according to the planned route, wherein the planned route usually includes multiple road sections. Before the server plans the route for the vehicle, the server usually determines the road status of the road section (e.g., open, closed).

[0003] In the related art, the method for determining the road state of a road section by a server includes: extracting the traffic volume and driving information of the road; and manually determining the road state of the road section based on the extracted traffic volume and driving information. In the above method, the road state of the road section is manually determined based on the extracted traffic volume and driving information, so that the accuracy of the determined road state is poor. Summary of the invention

[0004] The embodiments of the present application provide a road state detection method, device and equipment.

[0005] In a first aspect, an embodiment of the present application provides a road state detection method, the method comprising:

[0006] Obtaining a driving route of each vehicle including the same road segment in the recommended route;

[0007] According to the driving route of each vehicle, the suspected abnormal sections in the same road section are determined;

[0008] Acquire a target image of the adjacent road of the suspected abnormal road section;

[0009] According to the target image, the road status of the suspected abnormal section is determined.

[0010] In a second aspect, an embodiment of the present application provides a method for training a pixel recognition model, the method comprising:

[0011] Get training images;

[0012] Amplifying the number of training images to obtain multiple training images;

[0013] Adjusting the attribute information of some training images among the plurality of training images to obtain a plurality of second sample images;

[0014] The initial pixel recognition model is trained using a plurality of second sample images to obtain a pixel recognition model; the pixel recognition model is used to identify the category to which each pixel in the target image belongs, the category being a non-obstacle category or an obstacle category.

[0015] In a third aspect, an embodiment of the present application provides a method for training a road state recognition model, the method comprising:

[0016] acquiring a plurality of first sample images;

[0017] Determine multiple sample information based on multiple first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by splicing the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image;

[0018] The initial road state recognition model is trained using multiple sample information to obtain a road state recognition model, and the road state recognition model is used to identify the road state of suspected abnormal road sections.

[0019] In a fourth aspect, an embodiment of the present application provides a road state detection device, the device comprising: a first acquisition module, a first determination module, a second acquisition module and a second determination module; wherein,

[0020] The first acquisition module is used to acquire the driving route of each vehicle including the same road section in the recommended route;

[0021] The first determination module is used to determine the suspected abnormal road section in the same road section according to the driving route of each vehicle;

[0022] The second acquisition module is used to acquire a target image of a road adjacent to the suspected abnormal road section;

[0023] The second determination module is used to determine the road status of the suspected abnormal road section according to the target image.

[0024] In a fifth aspect, an embodiment of the present application provides a training device for a pixel recognition model, the device comprising: an acquisition module, a quantity amplification module, an adjustment module and a training module; wherein:

[0025] The acquisition module is used to acquire training images;

[0026] The quantity amplification module is used to amplify the quantity of the training images to obtain multiple training images;

[0027] The adjustment module is used to adjust the attribute information of some training images among the multiple training images to obtain multiple second sample images;

[0028] The training module is used to train the initial pixel recognition model using multiple second sample images to obtain a pixel recognition model; the pixel recognition model is used to identify the category to which each pixel in the target image belongs, which category is a non-obstacle category or an obstacle category.

[0029] In a sixth aspect, an embodiment of the present application provides a training device for a road state recognition model, the device comprising: an acquisition module, a determination module and a training module; wherein:

[0030] The acquisition module is used to acquire a plurality of first sample images;

[0031] The determination module is used to determine multiple sample information according to multiple first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by splicing the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image;

[0032] The training module is used to train the initial road state recognition model using multiple sample information to obtain the road state recognition model; the road state recognition model is used to identify the road state of suspected abnormal road sections.

[0033] In a seventh aspect, an embodiment of the present application provides a server, including: a processor and a memory;

[0034] Memory stores computer-executable instructions;

[0035] The processor executes computer-executable instructions stored in the memory, so that the processor executes the road state detection method of any one of the first aspects above, or the pixel recognition model training method of any one of the second aspects above, or the road state recognition model training method of the third aspect above.

[0036] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, the road state detection method of any one of the first aspects above, or the pixel recognition model training method of any one of the second aspects above, or the road state recognition model training method of the third aspect above are implemented.

[0037] In the ninth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the road state detection method of any one of the first aspects above, or the pixel recognition model training method of any one of the second aspects above, or the road state recognition model training method of the third aspect above.

[0038] The embodiments of the present application provide a road state detection method, device and equipment, and the road state detection method includes: obtaining the driving route of each vehicle including the same road section in the recommended route; determining the suspected abnormal road section in the same road section according to the driving route of each vehicle; obtaining the target image of the adjacent road of the suspected abnormal road section; and determining the road state of the suspected abnormal road section according to the target image. In the above method, the suspected abnormal road section is first determined, and then the road state of the suspected abnormal road section is determined according to the target image of the adjacent road of the suspected abnormal road section, which can improve the accuracy of the determined road state. In the present application, since the road state of the suspected abnormal road section is determined with reference to the target image that can reflect the real state of the suspected abnormal road section, the accuracy of the determined road state is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0040] Figure 1 A schematic diagram of an application scenario of the road state detection method provided in an embodiment of the present application;

[0041] Figure 2 Schematic diagram of the road state detection method provided in the embodiment of the present application Figure 1 ;

[0042] Figure 3 Schematic diagram of the road state detection method provided in the embodiment of the present application Figure 2 ;

[0043] Figure 4 A schematic diagram for determining adjacent roads provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of obtaining a suspected abnormal road section provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of image features provided in an embodiment of the present application;

[0046] Figure 7 A flowchart of a method for training a pixel recognition model provided in an embodiment of the present application;

[0047] Figure 8 A schematic diagram of training an initial pixel recognition model provided in an embodiment of the present application;

[0048] Fig. 9 A schematic diagram of a flow chart of a method for training a road state recognition model provided in an embodiment of the present application;

[0049] Fig.10 A schematic diagram of a road state recognition model provided in an embodiment of the present application;

[0050] Fig.11 Schematic diagram of the road state detection device provided in the embodiment of the present application Figure 1 ;

[0051] Fig.12 Schematic diagram of the road state detection device provided in the embodiment of the present application Figure 2 ;

[0052] Fig.13 A schematic diagram of a training device for a pixel recognition model provided in an embodiment of the present application;

[0053] Fig.14 A schematic diagram of a training device for a road state recognition model provided in an embodiment of the present application;

[0054] Fig.15 A hardware diagram of a server provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] Figure 1 Schematic diagram of application scenarios of the road state detection method provided in the embodiment of the present application. Figure 1 As shown, it includes: a vehicle, a recommended route and a server. The server can plan a recommended route for the vehicle. The recommended route includes at least one road segment (for example, including road A, road B and road C).

[0057] Before the server plans a recommended route for the vehicle, the server may first determine the state of each road section, and then determine whether to determine the road section as a part of the recommended route according to the road state of each road section.

[0058] In the prior art, the planned routes and actual driving routes corresponding to multiple vehicles are obtained; the road section with abnormal driving behavior is determined based on the planned routes and actual driving routes corresponding to the vehicles; the traffic flow characteristics and vehicle driving characteristics corresponding to the road section are extracted; and then, the road state of the road section with abnormal driving behavior is manually determined based on the extracted characteristics. In the above-mentioned prior art, the road state of the road section with abnormal driving behavior is manually determined based on the extracted features, which cannot reflect the actual state of the road state of the road section, resulting in poor accuracy of the determined road state. For example, when a road section is congested, the road state of the road section is open, but abnormal driving behaviors such as vehicle deviation and U-turn may occur. If the road state of the road section with abnormal driving behavior is manually determined based on the extracted features, the determined road state may be closed.

[0059] In this application, in order to avoid manually determining the road state of a section with abnormal driving behavior and improve the accuracy of the determined road state, the inventors thought of first preliminarily determining the suspected abnormal section, and then determining the road state of the suspected abnormal section based on the actual state of the suspected abnormal section, thereby improving the accuracy of the determined road state. Figure 1 For example, when the suspected abnormal road section is road B, the server can determine the road state of the suspected abnormal road section based on the image of the adjacent road (such as road A or road C) of road B. In the present application, the server first determines the suspected abnormal road section, and then determines the road state of the suspected abnormal road section based on the image, thereby improving the accuracy of the determined road state.

[0060] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0061] Figure 2 Schematic diagram of the road state detection method provided in the embodiment of the present application Figure 1 .like Figure 2 As shown, the road state detection method provided in this embodiment includes:

[0062] S201. Obtain the driving route of each vehicle including the same road section in the recommended route.

[0063] The execution subject of the embodiment of the present application may be a server, or a road state detection device arranged in the server. The road state detection device may be implemented by a combination of software and / or hardware.

[0064] The recommended route includes at least one road section. The recommended road section is a route planned by the server for the vehicle based on the initial address and the target address of the vehicle.

[0065] The driving route includes at least one road segment. The driving route is the route that the vehicle actually drives.

[0066] For each vehicle, the recommended route of the vehicle and the driving route corresponding to the recommended route of the vehicle may be the same or different.

[0067] The recommended routes corresponding to the plurality of vehicles include the same road section, which is a road section that the server wants to use as a part of the target recommended route when planning the target recommended route for the target vehicle.

[0068] Each road segment has an identifier, which may be the name of the road segment or the number of the road segment.

[0069] Optionally, the historical records stored in the server may include recommended routes for multiple vehicles and a driving route actually driven by each vehicle corresponding to the recommended route for the vehicle.

[0070] In a possible design, the recommended routes of the multiple vehicles can be obtained from the above historical records according to the identification of the same road section; the identification corresponding to at least one road section included in the recommended route includes the identification of the same road section;

[0071] According to the recommended routes of the multiple vehicles, the driving routes of the multiple vehicles are obtained from the above historical records; for one vehicle, the starting position and the ending position of the recommended route of the vehicle and the driving route of the vehicle may be the same.

[0072] S202: Determine suspected abnormal sections in the same road section according to the driving route of each vehicle.

[0073] The length of the suspected abnormal road segment may be less than or equal to the length of the same road segment.

[0074] Optionally, the suspected abnormal road section may be determined in the recommended route according to the driving route in the following two feasible ways.

[0075] Method 1: According to the driving routes of multiple vehicles, the sections of the same road section that have not been driven for more than a preset number of times are determined, and the sections that have not been driven for more than the preset number of times are determined as suspected abnormal sections.

[0076] Specifically, method 1 includes the following S2010 to S2014.

[0077] S2010. Count the identifiers of the same road section included in each vehicle's recommended route; and set the number of times the number of times the number of times a vehicle fails to pass the route corresponding to each identifier to 0.

[0078] S2011. According to the driving route of the ith vehicle, determine the same road section that the ith vehicle has not passed through in the recommended route of the ith vehicle.

[0079] S2012. Add 1 to the number of times corresponding to the identification of the same road section that the i-th vehicle has not passed.

[0080] S2013, add 1 to i, repeat S2011 to S2012 L times, and obtain the number of failed passes corresponding to each mark; L is the total number of each of the above vehicles.

[0081] S2014. Determine the road sections corresponding to the marks when the number of non-travel times among multiple identical road sections is greater than or equal to the first threshold as suspected abnormal road sections.

[0082] Method 2, including the following S2020~S2026.

[0083] S2020. Count the identifiers of the same road sections included in the recommended routes of each vehicle; and set the parameter value corresponding to each identifier to 0.

[0084] S2021. Extract a first section between the start deviation time t1 and the end deviation time t2 from the same section included in the recommended route of the i-th vehicle; extract a second section between the start deviation time t1 and the end deviation time t2 from the driving route of the i-th vehicle.

[0085] S2022. Calculate the cosine similarity and the segment length difference between the first segment and the second segment corresponding to the same segment.

[0086] S2023: Determine whether the cosine similarity is less than or equal to a first similarity threshold.

[0087] If so, execute S2024; otherwise, execute S2025.

[0088] In a possible design, it can also be determined whether the cosine similarity is less than or equal to the first similarity threshold and whether the road section length difference is greater than or equal to the first length threshold; if so, execute S2024, otherwise execute S2025.

[0089] S2024. Add 1 to the parameter value corresponding to the identification of the same road section, add 1 to i, and repeat S2021 to S2023 L times.

[0090] S2025, add 1 to i, repeat S2021 to S2024 L times, and obtain parameter values ​​corresponding to the identifiers of multiple identical road sections;

[0091] S2026. Determine, among the parameter values ​​corresponding to the identifiers of the multiple identical road sections, the identical road section corresponding to the identifier with the maximum parameter value as a suspected abnormal road section.

[0092] Among them, the first similarity threshold can be 0.7, 0.6, etc., and the first length threshold can be 300, 400 meters, etc.

[0093] It should be noted that, in actual applications, in addition to the above-mentioned method 1 and method 2, other feasible methods can also be used to determine the suspected abnormal road section, which will not be described in detail here.

[0094] S203: Acquire a target image of the adjacent roads of the suspected abnormal road section.

[0095] For example, in Figure 1 On the basis of, when the suspected abnormal road section is road B, in a possible design, the adjacent road of the suspected abnormal road section can be road C or road A.

[0096] For example, in Figure 1 On the basis of, when the suspected abnormal road section is road B, in another possible design, the adjacent road of the suspected abnormal road section can be a part of the road section in road C or a part of the road section in road A, wherein the length of the part of the road section is equal to the preset length. Optionally, the preset length can be 40 meters, 50 meters, 60, etc.

[0097] The target image may be an image taken by the vehicle on the road C and / or the road A, or may be an image taken by the vehicle on a portion of the road C and / or a portion of the road A.

[0098] S204: Determine the road status of the suspected abnormal road section according to the target image.

[0099] Specifically, the target image can be input into a pre-trained deep learning model to obtain the road status of the suspected abnormal section. The deep learning model is trained using multiple first sample images, where the multiple first sample images can be images taken by multiple vehicles on sample adjacent roads of multiple sample suspected abnormal sections.

[0100] Optionally, the deep learning model can be a deep residual network, a regional convolutional neural network, a full convolutional neural network, a void convolutional neural network, etc.

[0101] Optionally, the road status may be open, closed, or have low traffic capacity.

[0102] Figure 2The road state detection method provided in the embodiment includes: obtaining the driving route of each vehicle including the same road section in the recommended route; determining the suspected abnormal road section in the same road section according to the driving route of each vehicle; obtaining the target image of the adjacent road of the suspected abnormal road section; and determining the road state of the suspected abnormal road section according to the target image. In the above method, the suspected abnormal road section is first determined, and then the road state of the suspected abnormal road section is determined according to the target image of the adjacent road of the suspected abnormal road section, which can improve the accuracy of the determined road state. In the present application, since the road state of the suspected abnormal road section is determined with reference to the target image that can reflect the true state of the suspected abnormal road section, the accuracy of the determined road state is improved.

[0103] In the present application, after determining the suspected abnormal section, the road state of the suspected abnormal section is determined by referring to the target image that can reflect the real state of the suspected abnormal section (i.e., the target image of the road adjacent to the suspected abnormal section), so the accuracy of the determined road state can be improved. It should be noted that the road state of the suspected abnormal section is determined based on the target image that can reflect the real state of the suspected abnormal section, so that when there is congestion and road construction on the road, if the vehicle has abnormal behaviors such as deviation and U-turn, it can also accurately determine that the road state is low in capacity (corresponding to congestion) or closed (corresponding to road construction).

[0104] Based on the above embodiments, Figure 3 The road state detection method provided in the embodiment of the present application is further described in detail. For details, please refer to Figure 3 Example.

[0105] Figure 3 Schematic diagram of the road state detection method provided in the embodiment of the present application Figure 2 .like Figure 3 As shown, the road state detection method provided in this embodiment includes:

[0106] S301. Obtain the driving route of each vehicle including the same road section in the recommended route.

[0107] Specifically, the execution process of S301 is the same as the execution process of S201, which will not be repeated here.

[0108] S302: Determine suspected abnormal road sections in the same road section according to the driving route of each vehicle.

[0109] Specifically, the execution process of S302 is the same as the execution process of S202, which will not be repeated here.

[0110] S303: Determine the identification of the suspected abnormal road section.

[0111] The recommended route includes the same road section having a corresponding identifier. The server may store the starting position and the ending position of the same road section, the identifier of each same road section, and the first mapping relationship between the identifier of the same road section and the starting position and the ending position of the same road section.

[0112] Optionally, after determining the suspected abnormal section in the same section, the starting position (the position located by the GSP) and the terminal position (the position located by the GSP) of the suspected abnormal section can be obtained; based on the starting position and the terminal position of the suspected abnormal section, the starting position and the terminal position of the target same section are determined in the first mapping relationship, wherein the starting position and the terminal position of the suspected abnormal section are between the starting position and the terminal position of the target same section; the identifier corresponding to the starting position and the terminal position of the target same section in the first mapping relationship is determined as the identifier of the suspected abnormal section.

[0113] S304: Determine, according to the identification, a plurality of to-be-selected road sections of preset length from the roads connected to the suspected abnormal road.

[0114] Optionally, the server may also store a second mapping relationship between the identifier of the road segment and at least one adjacent road identifier corresponding to the identifier of the road segment. For an identifier of a road segment, the second mapping relationship indicates that the road segment corresponding to the identifier and the road segment corresponding to the adjacent road identifier are adjacent to each other.

[0115] Optionally, at least one adjacent road identifier corresponding to the identifier may be determined based on the identifier and the second mapping relationship, and the road section corresponding to each of the at least one adjacent road identifier may be determined as a road connected to the suspected abnormal road. Further, according to a preset length, the road connected to the suspected abnormal road is segmented to obtain a plurality of to-be-selected road sections, and the length of each to-be-selected road section is equal to the preset length.

[0116] S305. According to the moving direction of the vehicle, determine the adjacent roads of the suspected abnormal road sections for the candidate road sections whose end points coincide with the starting points of the suspected abnormal roads among the multiple candidate road sections.

[0117] Figure 4 A schematic diagram of determining adjacent roads provided in an embodiment of the present application. Figure 1 On the basis of Figure 4 As shown, when the suspected abnormal road is road B, for example, road A and road C connected to the suspected abnormal road are segmented to obtain four road sections to be selected.

[0118] According to the moving direction of the vehicle 1 , a candidate road section among multiple candidate road sections, which is located on the road C and whose end point P1 coincides with the start point P1 of the suspected abnormal road, can be determined as an adjacent road to the suspected abnormal road section.

[0119] According to the moving direction of the vehicle 2, a candidate road section among multiple candidate road sections, which is located on the road A and whose end point P2 coincides with the starting point P2 of the suspected abnormal road, can be determined as an adjacent road to the suspected abnormal road section.

[0120] S306: Acquire multiple original images corresponding to adjacent roads.

[0121] Among them, the multiple original images are images taken by the vehicle on adjacent roads.

[0122] S307: Filter the multiple original images according to the filtering condition to obtain a target image.

[0123] The screening criteria include at least one of the following:

[0124] The azimuth between the starting point of the suspected abnormal road and the moving direction of the vehicle when the original image is captured is within a first preset range, and the starting point of the suspected abnormal road is a position point closest to the vehicle in the driving direction and on the suspected abnormal road;

[0125] The shooting angle of the original image is within a second preset range; or,

[0126] The clarity of the original image is greater than or equal to the preset value.

[0127] For example, the first preset range may be [60, 120] (unit: degree), the second preset range may be [-90, 90] (unit: degree), and the first clarity threshold may be [100, 255] (unit: grayscale value).

[0128] It should be noted that the above-mentioned azimuth angle indicates the horizontal angle between the north direction line of the starting point of the suspected abnormal road and the direction of movement of the vehicle in a clockwise direction.

[0129] S308, respectively obtaining the motion information of the vehicle when shooting the target image and the image features of the target image.

[0130] The motion information includes at least one of the following: the speed of the vehicle, the direction angle, and the distance between the position of the vehicle when the target image is captured and the starting position of the suspected abnormal road section.

[0131] In a possible design, the motion information of the vehicle when capturing the target image is obtained, including:

[0132] Obtaining a shooting position corresponding to a target image from information recorded by a driving recorder;

[0133] Obtaining from the electronic device of the vehicle the speed and direction angle corresponding to the shooting position, and the distance between the position of the vehicle when the target image was shot and the starting position of the suspected abnormal road section;

[0134] The speed and direction angle corresponding to the shooting position, and the distance between the position of the vehicle when the target image is shot and the starting position of the suspected abnormal road section are determined as the movement information of the vehicle when the target image is shot.

[0135] Image features include at least one of the following seven features:

[0136] Features 1 and 2, first region O max The first angle a (e.g., the angle formed by the right edge of the two sides and the center line, for example, corresponding to feature 1) and the second angle b (e.g., the angle formed by the left edge of the two sides and the center line, for example, corresponding to feature 2) formed by the two opposite sides of the image respectively and the center line of the target image; the first area is the largest area among the multiple areas;

[0137] Feature 3: First Region O max The area w max ·h max ;

[0138] Feature 4: Total area of ​​multiple regions

[0139] Feature 5: The first ratio of the area of ​​each region to the total area of ​​multiple regions M is the total number of regions;

[0140] Feature 6: The second ratio of the area of ​​the region to the area of ​​the target image (w max ·h max ) / (w·h);

[0141] Feature 7: The third ratio of the total area of ​​the multiple regions to the area of ​​the target image

[0142] Optionally, the image features of the target image may be obtained by the following two feasible methods.

[0143] Method 1: When the image features include the above 7 features, the method for obtaining the image features of the target image includes:

[0144] Performing image recognition on the target image to obtain the image type of the image area included in the target image, where the image type may include: sky, land, obstacle, ocean, etc.; the obstacle may include any at least one of the following: construction fence, water fence, cone barrel, construction vehicle, construction road sign, staff, etc.;

[0145] Determining at least one image region where an obstacle is located in the target image according to the image type;

[0146] determining a maximum image region in the at least one image region according to a size of an area of ​​the at least one image region;

[0147] According to at least one image area and a maximum image area, feature extraction is performed on the target image to obtain the above 7 features;

[0148] According to preset rules, the obtained 7 features are sorted to obtain image features; the preset rules include the arrangement position of each feature in the image features.

[0149] Mode 2: When the image features include the above 7 features, the method for obtaining the image features of the target image includes:

[0150] Input the target image into a pixel recognition model to obtain the category to which each pixel in the target image belongs; the pixel recognition model is obtained by training with a plurality of second sample images, the second sample images include the area where the obstacle is located; the category is a non-obstacle category or an obstacle category;

[0151] According to the category to which each pixel belongs, feature extraction is performed on the area where the obstacle is located in the target image to obtain image features.

[0152] The obstacle category may include at least one of the following: a construction fence category, a water barrier fence category, a cone barrel category, a construction vehicle category, a construction road sign category, and a staff category.

[0153] In a possible design, according to the category to which each pixel belongs, feature extraction is performed on the area where the obstacle is located in the target image to obtain image features, including:

[0154] According to the categories to which the pixels belong, a plurality of regions are determined in the target image; the category of the pixels in each of the plurality of regions is an obstacle category;

[0155] Determine a first region among the multiple regions; the first region is the region with the largest area among the multiple regions;

[0156] Obtaining a first angle and a second angle formed by two opposite edges in the first region and the center line of the target image respectively;

[0157] Get the area of ​​the first region;

[0158] Acquiring the area of ​​the region respectively and acquiring the area of ​​the first region;

[0159] Obtaining ratios of the area of ​​the region to the total area of ​​the plurality of regions and the area of ​​the target image to obtain a first ratio and a second ratio;

[0160] Acquire a ratio of a total area of ​​the plurality of regions to an area of ​​the target image to obtain a third ratio;

[0161] Image features are obtained for the first angle, the second angle, the area of ​​the region, the total area of ​​the multiple regions, the first ratio, the second ratio, and the third ratio.

[0162] S309: Determine the road status of the suspected abnormal road section based on the motion information and image features.

[0163] In one possible design, the motion information includes the speed and direction angle of the vehicle and the distance between the position of the vehicle when the target image is taken and the starting position of the suspected abnormal road section;

[0164] Determine the road status of suspected abnormal sections based on motion information and image features, including:

[0165] The speed, direction angle, distance and image features are spliced ​​to obtain spliced ​​information;

[0166] The spliced ​​information is input into a pre-trained road state recognition model to obtain the road state of the suspected abnormal section; the road state recognition model is trained using multiple sample information, and the sample information is spliced ​​using the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal section, and the image features of the first sample image.

[0167] In a possible design, the speed, direction angle, and distance may be combined to obtain trajectory features; the trajectory features and image features may be spliced ​​to obtain spliced ​​information.

[0168] This is different from the prior art, in which the road state is determined according to a road state detection method based on computer vision. In the road state detection method based on computer vision, the server needs to collect images of all vehicles in the road network, and the server processes all images through a model to obtain the road state. In the above process, the server collects images of all vehicles in the road network, which wastes a lot of data traffic, resulting in high costs, and the service processes the images of all vehicles in the road network, which makes the processing time long, resulting in low efficiency in determining the road state, reducing the frequency of updating the road state, and failing to determine the road state in real time. In addition, in the road state detection method based on computer vision, it is impossible to accurately map the obstacles in the image to the actual road network position, resulting in low accuracy in the determined road state.

[0169] In this application, Figure 3The method provided in the embodiment includes: after the server determines the suspected abnormal section, it determines the adjacent roads of the suspected abnormal section from the roads connected to the suspected abnormal road, and then determines the road status of the suspected abnormal section based on multiple original images corresponding to the adjacent roads, thereby avoiding the service from collecting images of vehicles in the entire road network, saving data traffic, and reducing costs. In addition, multiple original images are screened according to screening conditions to obtain a target image, and the road status of the suspected abnormal section is determined based on the target image, which can avoid the server from processing a large number of images, saving processing time, improving the efficiency of determining the road status, and increasing the frequency of updating the road status, so as to achieve real-time determination of the road status. In addition, Figure 3 In an embodiment, after the adjacent roads of the suspected abnormal section are determined, the road state of the suspected abnormal section is determined based on the target image on the adjacent road and the motion information of the vehicle when the target image is taken, so that the obstacles in the image can be accurately mapped to the actual road network location (i.e., on the adjacent road), thereby improving the accuracy of the determined road state.

[0170] Figure 5 A schematic diagram of obtaining a suspected abnormal road section provided in an embodiment of the present application. Figure 5 As shown, for example: through S2021 in the method 2 in the above S202, the first section between the start deviation time t1 and the end deviation time t2 is extracted from the same section included in the recommended route of the vehicle;

[0171] Extracting a second section between a start deviation time t1 and an end deviation time t2 from the driving route of the vehicle;

[0172] Obtain the cosine similarity between the first road segment and the second road segment;

[0173] When the cosine similarity is less than or equal to the first similarity threshold, it is determined that the first road section has an abnormality, and then the same road section as the first road section is determined as a suspected abnormal road section.

[0174] Figure 6 A schematic diagram of image features provided in an embodiment of the present application. Figure 6 As shown, the target image 61 is included. For example, the target image 61 includes: area O1 and area O2.

[0175] The area of ​​region O1 is w1·h1, and the area of ​​region O2 is w2·h2. Since the area of ​​region O1 is larger than that of region O2, region O1 is the first region O2. max (The area is w max ·h max ).

[0176] According to the above-mentioned method for determining image features, the image features (including 7 features) corresponding to the target image 61 are obtained as follows: Wherein, N_{t} represents the shooting time corresponding to the target image.

[0177] In practical applications, when the number of target images is Y, the image features corresponding to each of the Y target images can be determined according to the above method; then, according to the shooting time of the Y target images, the image features corresponding to each of the Y target images are combined to obtain the total image features.

[0178] Figure 7 The flowchart of the training method of the pixel recognition model provided in the embodiment of the present application is as follows. Figure 7 As shown, the method includes:

[0179] S701: Obtain a training image.

[0180] Optionally, Figure 7 The execution subject of the embodiment may be a server, or a training device for a pixel recognition model in the server, or other electronic devices (such as a laptop computer, a desktop computer, etc.), or a training device for a pixel recognition model set in other electronic devices. The training device for a pixel recognition model may be implemented by a combination of software and / or hardware.

[0181] There are multiple training images, and the multiple training images are different from each other. Each training image is an image obtained by a user marking an area where an obstacle is located.

[0182] S702: Expand the number of training images to obtain multiple training images.

[0183] In a possible design, the number of training images can be expanded according to a preset value to obtain multiple training images. For example, the preset value can be 20, 50, etc.

[0184] For example, when the number of training images is 1 and the preset value is 20, the number of training images is expanded to obtain 20 training images.

[0185] S703: Adjust the attribute information of some training images among the multiple training images to obtain multiple second sample images.

[0186] The attribute information includes at least one of the following: contrast, sharpness, brightness, and noise.

[0187] Optionally, multiple second sample images may be obtained in the following three ways.

[0188] Method 1: According to preset rules, the contrast, sharpness, brightness, and noise of some training images are adjusted to obtain some adjusted images; the preset rules include contrast values, sharpness values, brightness values, and noise values ​​corresponding to some training images;

[0189] The partial adjustment images and images other than the partial training images among the plurality of training images are determined as a plurality of second sample images.

[0190] Method 2: According to preset rules, the attribute information of multiple training images is adjusted to obtain multiple second sample images, and the preset rules include a contrast value, a sharpness value, a brightness value, or a noise value corresponding to each training image.

[0191] Method 3: Generate M parameter values ​​corresponding to contrast, sharpness, brightness, or noise;

[0192] Among the M parameter values ​​corresponding to contrast, sharpness, brightness, or noise, one parameter value corresponding to contrast, sharpness, brightness, or noise is randomly selected to obtain a first feature sequence;

[0193] Delete one parameter value corresponding to contrast, sharpness, brightness, or noise, selected randomly from the M parameter values ​​corresponding to contrast, sharpness, brightness, or noise;

[0194] Among the remaining parameter values, one parameter value corresponding to contrast, sharpness, brightness, or noise is randomly selected again to obtain a second feature sequence;

[0195] And so on, M feature sequences are generated;

[0196] According to the M feature sequences, the attribute information of the M training images is randomly adjusted to obtain M second sample images.

[0197] It should be noted that, in practical applications, multiple second sample images may also be obtained through other feasible methods, which will not be described in detail here.

[0198] S704: Use multiple second sample images to train the initial pixel recognition model to obtain a pixel recognition model.

[0199] The pixel recognition model is used to identify the category to which each pixel in the target image belongs, which is either a non-obstacle category or an obstacle category.

[0200] In a possible design, for a second sample image, in the process of using the second sample image to train the initial pixel recognition model, the initial pixel recognition model can output the obstacle category to which each pixel in the second sample image belongs. When the obstacle category to which each pixel in the second sample image belongs determined by the user is different from the obstacle category to which each pixel in the second sample image belongs output by the initial pixel recognition model, the second sample image can be sampled to retrain the initial pixel recognition model.

[0201] Different from the prior art, in the prior art, a large number of images are usually required to be manually annotated, and then the model is trained through the annotated images, resulting in high manual annotation costs and low annotation efficiency. In the present application, the number of training images is expanded to obtain multiple training images, and the attribute information of some training images in the multiple training images is adjusted to obtain multiple second sample images, and then the initial pixel recognition model is trained through the multiple second sample images, which can reduce the high manual annotation costs and improve the annotation efficiency.

[0202] Figure 8 Schematic diagram of training the initial pixel recognition model provided in the embodiment of the present application. Figure 8 As shown, it includes: data augmentation model, initial pixel recognition model, obstacle category loss function model. The initial pixel recognition model includes: initial encoder and initial decoder.

[0203] The data augmentation model is used to execute S701 to S703 according to the training image to obtain a plurality of second sample images.

[0204] For each second sample image in the plurality of second sample images, the initial pixel recognition model sequentially performs the following operations:

[0205] The initial encoder processes the second sample image to obtain a high-dimensional embedding feature vector, and provides the high-dimensional embedding feature vector to the initial decoder;

[0206] The initial decoder processes the high-dimensional embedded feature vector and outputs the fully connected layer vector corresponding to the second sample image.

[0207] The obstacle category loss function model determines the loss function value corresponding to the second sample image according to the fully connected layer vector corresponding to the second sample image.

[0208] Optionally, when the loss function value remains unchanged or the difference between the loss function values ​​corresponding to two consecutive second sample images is less than or equal to a preset threshold, training is stopped to obtain the pixel recognition model.

[0209] Among them, the obstacle category loss function model is:

[0210]

[0211] Where m is the index of the second sample image, DLoss m is the mth loss function value (i.e., the loss function value of the mth second sample image), n is the index of the pixel in the mth second sample image, is the balanced category difference factor of the nth pixel, CELoss n is the cross entropy loss function of the nth pixel, λ is the pixel category equalization weight factor, c is the index of the obstacle category, C n is the obstacle category of the nth pixel, R c is the total number of pixels belonging to the cth obstacle category.

[0212] It should be noted that the above n, CELoss n ,λ,c,C n , R c Included in the fully connected layer vector.

[0213] Different from the prior art, in the prior art, due to the high cost of manual annotation, it is unlikely to annotate a large number of sample images. Therefore, in order to save costs, only a small number of manually annotated images are used for model training. However, due to the imbalance of the number of obstacle categories defined in advance in practice, such as common construction fences and cones, rare excavators, water barriers, staff, etc., the number of sample images of each obstacle category varies greatly, and the obstacle categories in the sample images are unbalanced. Furthermore, in the prior art, due to the large difference in the number of sample images of each obstacle category and the imbalance of obstacle categories in the sample images, the loss function cannot converge or converges slowly, which in turn leads to a long training time. If the training is forced to terminate, the model will be inaccurate. When an inaccurate model is used to process the image, the obstacle category of each pixel cannot be accurately determined.

[0214] In the present application, the number of training images is expanded to obtain multiple training images, and the attribute information of some training images in the multiple training images is adjusted to obtain multiple second sample images, so as to avoid the problem that the number of second sample images of each obstacle category is large and the obstacle categories in the second sample images are unbalanced, so that the initial pixel recognition model can be sufficiently trained. Moreover, since the present application innovatively designs the obstacle category loss function model, the initial pixel recognition model can converge quickly, save training time, improve the accuracy of the pixel recognition model, and then improve the accuracy of the obstacle category determined for each pixel.

[0215] Fig. 9A flowchart of a method for training a road state recognition model provided in an embodiment of the present application. Fig. 9 As shown, the method includes:

[0216] S901. Acquire a plurality of first sample images.

[0217] Optionally, Fig. 9 The execution subject of the embodiment may be a server, or a training device for a road state recognition model in the server, or other electronic devices (such as a laptop computer, a desktop computer, etc.), or a training device for a road state recognition model set in other electronic devices. The training device for a road state recognition model may be implemented by a combination of software and / or hardware.

[0218] The first sample image is an image taken by a vehicle on a road adjacent to the sample suspected abnormal road section.

[0219] Optionally, the multiple first sample images may also be the multiple second sample images in the present application.

[0220] S902. Determine multiple sample information based on multiple first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by stitching together the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image.

[0221] Specifically, the method of determining a sample information according to a first sample image is similar to the method in S303 to S308 and will not be described again here.

[0222] S903: Use multiple sample information to train the initial road state recognition model to obtain a road state recognition model, where the road state recognition model is used to identify the road state of suspected abnormal road sections.

[0223] Fig.10 A schematic diagram of a road state recognition model provided in an embodiment of the present application. Fig.10 As shown, the road state recognition model includes: a first network, a second network and a third network. The first network, the second network and the third network are connected in sequence.

[0224] The concatenated information {N_{feature 1, feature 2, feature 3, feature 4, feature 5, feature 6, feature 7, feature 8, feature 9, feature 10}, N_{t}} is input into the first network.

[0225] The spliced ​​information is obtained by splicing the trajectory features {N_{feature 8, feature 9, feature 10}, N_{t}} and the image features {N_{feature 1, feature 2, feature 3, feature 4, feature 5, feature 6, feature 7}, N_{t}}.

[0226] The trajectory features are {N_{feature 8, feature 9, feature 10}, N_{t}}, which are obtained by combining the motion information. Among them, feature 8 indicates the speed, feature 9 indicates the direction angle, and feature 10 indicates the distance.

[0227] The image features {N_{feature 1, feature 2, feature 3, feature 4, feature 5, feature 6, feature 7}, N_{t}} are obtained by combining the first angle, the second angle, the area of ​​the region, the total area of ​​multiple regions, the first ratio, the second ratio and the third ratio. Among them, feature 1 indicates the first angle, feature 2 indicates the second angle, feature 3 indicates the area of ​​the region, feature 4 indicates the total area of ​​multiple regions, feature 5 indicates the first ratio, feature 6 indicates the second ratio, and feature 7 indicates the third ratio.

[0228] The first network includes: a 1D convolution subnetwork and a batch normalization + RELU activation function + maximum pooling (Bn+Relu+Maxpool) subnetwork. The 1D convolution subnetwork is connected to the Bn+Relu+Maxpool subnetwork. The 1D convolution subnetwork processes the concatenated information to obtain the initial sequence potential vector of each parameter; the Bn+Relu+Maxpool subnetwork further processes the initial sequence potential vector of each parameter to obtain the first sequence potential vector of each parameter.

[0229] The second network includes: at least one subnetwork. The at least one subnetwork is connected in sequence. Each subnetwork includes: a 2D convolution subnetwork and a Bn+Relu+Maxpool subnetwork. In each subnetwork, the 2D convolution subnetwork is connected to the Bn+Relu+Maxpool subnetwork. The second network is used to receive the first sequence of latent vectors and process the first sequence of latent vectors to obtain the target spatiotemporal vector.

[0230] For example, when the second network includes two sub-networks, in the first sub-network, the 2D convolution sub-network is used to perform inter-parameter feature extraction on the first sequence of latent vectors to obtain the first initial space-time vector, and the Bn+Relu+Maxpool sub-network further processes the initial space-time vector to obtain the first space-time vector; in the second sub-network, the 2D convolution sub-network is used to perform further space-time feature extraction on the first space-time vector to obtain the second initial space-time vector, and the Bn+Relu+Maxpool sub-network processes the second initial space-time vector to obtain the target space-time vector.

[0231] Among them, the third network includes: a fully connected layer (FC layer), a classifier (Softmax) and an output layer (Output). Among them, the fully connected layer and the classifier are connected. Specifically, the fully connected layer encodes and maps the target spatiotemporal vector to obtain a one-dimensional vector; the classifier processes the one-dimensional vector to obtain the probability corresponding to at least one preset category; the output layer determines the maximum probability among the probabilities corresponding to at least one preset category, and outputs the preset category corresponding to the maximum probability (i.e., the road status of the suspected abnormal section). Among them, at least one preset category includes: open, closed, and low traffic capacity.

[0232] Fig.11 Schematic diagram of the road state detection device provided in the embodiment of the present application Figure 1 .like Fig.11 As shown, the road state detection device 10 includes: a first acquisition module 101, a first determination module 102, a second acquisition module 103 and a second determination module 104; wherein,

[0233] The first acquisition module 101 is used to acquire the driving route of each vehicle including the same road section in the recommended route;

[0234] The first determination module 102 is used to determine the suspected abnormal road section in the same road section according to the driving route of each vehicle;

[0235] The second acquisition module 103 is used to acquire a target image of a road adjacent to the suspected abnormal road section;

[0236] The second determination module 104 is used to determine the road status of the suspected abnormal road section according to the target image.

[0237] The road state detection device 10 provided in the embodiment of the present application can perform the above-mentioned road state detection, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0238] Fig.12 Schematic diagram of the road state detection device provided in the embodiment of the present application Figure 2 .exist Fig.11 On the basis of Fig.12 As shown, the road state detection device 10 further includes: a third determination module 105; the third determination module 105 is used to:

[0239] Identify the signs of suspected abnormal road sections;

[0240] According to the identification, a plurality of candidate road sections of a preset length are determined from the roads connected to the suspected abnormal road;

[0241] According to the moving direction of the vehicle, a candidate road section among multiple candidate road sections whose end point coincides with the starting point of the suspected abnormal road is determined as an adjacent road.

[0242] The road state detection device 10 provided in the application embodiment can perform the above-mentioned road state detection, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0243] In a possible design, the second determining module 104 is specifically configured to:

[0244] The road status of the suspected abnormal section is determined based on the image features of the target image and the motion information of the vehicle that photographed the target image.

[0245] In a possible design, the motion information includes the speed, direction angle, and distance between the position of the vehicle when the target image is captured and the starting position of the suspected abnormal road section;

[0246] The second determining module 104 is specifically used for:

[0247] The speed, direction angle, distance and image features are spliced ​​to obtain spliced ​​information;

[0248] The spliced ​​information is input into a pre-trained road state recognition model to obtain the road state of the suspected abnormal section; the road state recognition model is trained using multiple sample information, and the sample information is spliced ​​using the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal section, and the image features of the first sample image.

[0249] In a possible design, the second determining module 104 is specifically configured to:

[0250] Input the target image into the pixel recognition model to obtain the category to which each pixel in the target image belongs;

[0251] The pixel recognition model is obtained by training with a plurality of second sample images, wherein the second sample images include an area where obstacles are located; the category is a non-obstacle category or an obstacle category;

[0252] According to the category to which each pixel belongs, feature extraction is performed on the area where the obstacle is located in the target image to obtain image features.

[0253] In a possible design, the second determining module 104 is specifically configured to:

[0254] According to the category, a plurality of regions are determined in the target image; the category of each pixel in each of the plurality of regions is an obstacle category;

[0255] Determine a first region among the multiple regions; the first region is the region with the largest area among the multiple regions;

[0256] Obtaining a first angle and a second angle formed by two opposite side edges in the first region and a center line of the target image, respectively, wherein the center line is parallel to the two opposite side edges and passes through the center of the target image;

[0257] Get the area of ​​the first region;

[0258] Obtaining ratios of the area of ​​the region to the total area of ​​the plurality of regions and the area of ​​the target image to obtain a first ratio and a second ratio;

[0259] Obtaining a ratio of a total area of ​​the plurality of regions to an area of ​​the target image to obtain a third ratio;

[0260] Image features are obtained for the first angle, the second angle, the area of ​​the region, the total area of ​​the multiple regions, the first ratio, the second ratio, and the third ratio.

[0261] In a possible design, the second acquisition module 103 is specifically used to:

[0262] Acquire multiple original images corresponding to adjacent roads;

[0263] Filter multiple original images according to the filtering conditions to obtain a target image;

[0264] The screening criteria include at least one of the following:

[0265] The azimuth between the starting point of the suspected abnormal road and the moving direction of the vehicle when the original image is captured is within a first preset range, and the starting point of the suspected abnormal road is a position point on the suspected abnormal road that is closest to the vehicle in the moving direction;

[0266] The shooting angle of the original image is within a second preset range; or,

[0267] The clarity of the original image is greater than or equal to the preset value.

[0268] In a possible design, the first determining module 102 is specifically configured to:

[0269] According to the driving route of each vehicle, sections of the same road section that have not been driven for more than a preset number of times are determined, and the sections that have not been driven for more than a preset number of times are determined as suspected abnormal sections.

[0270] Fig.13 Schematic diagram of a training device for a pixel recognition model provided in an embodiment of the present application. Fig.13As shown, the training device 20 for the pixel recognition model includes: an acquisition module 201, a quantity expansion module 202, an adjustment module 203 and a training module 204; wherein,

[0271] The acquisition module 201 is used to acquire a training image;

[0272] The quantity amplification module 202 is used to amplify the quantity of the training image to obtain multiple training images;

[0273] The adjustment module 203 is used to adjust the attribute information of some training images among the multiple training images to obtain multiple second sample images;

[0274] The training module 204 is used to train the initial pixel recognition model using a plurality of second sample images to obtain a pixel recognition model; the pixel recognition model is used to identify the category to which each pixel in the target image belongs, which category is a non-obstacle category or an obstacle category.

[0275] The pixel recognition model training device 20 provided in the embodiment of the present application can execute the above-mentioned pixel recognition model training method, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0276] In a possible design, the attribute information includes at least one of the following: contrast, sharpness, brightness, and noise; the adjustment module 203 is specifically used to:

[0277] According to preset rules, the contrast, sharpness, brightness, and noise of some training images are adjusted to obtain some adjusted images; the preset rules include contrast values, sharpness values, brightness values, and noise values ​​corresponding to some training images;

[0278] The partial adjustment images and images other than the partial training images among the plurality of training images are determined as a plurality of second sample images.

[0279] Fig.14 Schematic diagram of a training device for a road state recognition model provided in an embodiment of the present application. Fig.14 As shown, the training device 30 of the road state recognition model includes: an acquisition module 301, a determination module 302 and a training module 303; wherein,

[0280] The acquisition module 301 is used to acquire a plurality of first sample images;

[0281] The determination module 302 is used to determine a plurality of sample information according to a plurality of first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by splicing the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image;

[0282] The training module 303 is used to train the initial road state recognition model using multiple sample information to obtain a road state recognition model, and the road state recognition model is used to identify the road state of suspected abnormal road sections.

[0283] The road state recognition model training device 30 provided in the embodiment of the present application can execute the above-mentioned road state recognition model training method.

[0284] Fig.15 The hardware diagram of the server provided in the embodiment of the present application. Fig.15 As shown, the server 40 may include: a transceiver 401, a memory 402, and a processor 403. The transceiver 401 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or similar descriptions, and the receiver may also be referred to as a receiver, a receiver, a reception port, a reception interface, or similar descriptions. Exemplarily, the transceiver 401, the memory 402, and the processor 403 are interconnected via a bus 404.

[0285] The memory 402 is used to store computer executable instructions;

[0286] The processor 403 is used to execute the computer-executable instructions stored in the memory 402, so that the processor 403 executes the above-mentioned road state detection method, or the training method of the pixel recognition model, or the training method of the road state recognition model.

[0287] An embodiment of the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, the above-mentioned road state detection method, or the training method of the pixel recognition model, or the training method of the road state recognition model is implemented.

[0288] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it can implement the above-mentioned road state detection method, or the training method of the pixel recognition model, or the training method of the road state recognition model.

[0289] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.

[0290] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0291] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0292] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0293] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0294] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

Claims

1. A road state detection method, It is characterized in that The method comprises: Obtaining a driving route of each vehicle including the same road segment in the recommended route; According to the driving route of each vehicle, determining a road section in the same road section that has not been driven for more than a preset number of times, and determining the road section that has not been driven for more than the preset number of times as a suspected abnormal road section; Acquire a target image of a road adjacent to the suspected abnormal road section; The road state of the suspected abnormal road section is determined according to the target image.

2. The method according to claim 1, It is characterized in that Determining the road state of the suspected abnormal road section according to the target image includes: The road state of the suspected abnormal road section is determined according to the image features of the target image and the motion information of the vehicle that photographed the target image.

3. The method according to claim 2, It is characterized in that The motion information includes the speed and direction of the vehicle and the distance between the position of the vehicle when the target image is taken and the starting position of the suspected abnormal road section; The determining the road state of the suspected abnormal road section according to the image features of the target image and the motion information of the vehicle photographing the target image includes: splicing the speed, the direction angle, the distance and the image feature to obtain spliced ​​information; The spliced ​​information is input into a pre-trained road state recognition model to obtain the road state of the suspected abnormal section; the road state recognition model is trained using multiple sample information, and the sample information is spliced ​​using the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal section, and the image features of the first sample image.

4. The method according to claim 2 or 3, It is characterized in that The image features are determined based on the following steps: Inputting the target image into a pixel recognition model to obtain a category to which each pixel in the target image belongs; the pixel recognition model is obtained by training with a plurality of second sample images, the second sample images include an area where obstacles are located, and the category is a non-obstacle category or an obstacle category; According to the category to which each pixel belongs, feature extraction is performed on the area where the obstacle is located in the target image to obtain the image feature.

5. The method according to claim 4, It is characterized in that The step of extracting features of the region where the obstacle is located in the target image according to the category to which each pixel belongs, and obtaining the image features, comprises: According to the category, a plurality of regions are determined in the target image; the category of each pixel in each of the plurality of regions is the obstacle category; Determine a first region among the multiple regions; the first region is the region with the largest area among the multiple regions; Acquire a first angle and a second angle formed by two opposite side edges in the first region and a center line of the target image, respectively, wherein the center line is parallel to the two opposite side edges and passes through the center of the target image; Obtaining the area of ​​the first region; Obtaining ratios of the area of ​​the region to the total area of ​​the plurality of regions and the area of ​​the target image to obtain a first ratio and a second ratio; Obtaining a ratio of a total area of ​​the plurality of regions to an area of ​​the target image to obtain a third ratio; The image feature is obtained for the first angle, the second angle, the area of ​​the region, the total area of ​​the multiple regions, the first ratio, the second ratio and the third ratio.

6. The method according to any one of claims 1 to 3, It is characterized in that The step of acquiring a target image of a road adjacent to the suspected abnormal road section includes: Acquire a plurality of original images corresponding to the adjacent roads; Filtering the plurality of original images according to the filtering condition to obtain the target image; The screening conditions include at least one of the following: The azimuth between the starting point of the suspected abnormal road section and the moving direction of the vehicle when the original image is taken is within a first preset range, and the starting point of the suspected abnormal road section is a position point closest to the vehicle in the driving direction and on the suspected abnormal road section; The shooting angle of the original image is within a second preset range; or, The clarity of the original image is greater than or equal to a preset value.

7. The method according to any one of claims 1 to 3, It is characterized in that The adjacent roads are determined based on the following steps: Determining the identification of the suspected abnormal road section; According to the identification, a plurality of to-be-selected road sections of a preset length are determined from the roads connected to the suspected abnormal road section; According to the moving direction of the vehicle, a candidate road section among the multiple candidate road sections, whose end point coincides with the starting point of the suspected abnormal road section, is determined as the adjacent road.

8. The method according to any one of claims 1 to 3, It is characterized in that The determining, according to the driving route, a suspected abnormal section in the recommended route includes: According to the driving route of each vehicle, a road section in the same road section that has not been driven for more than a preset number of times is determined, and the road section that has not been driven for more than a preset number of times is determined as the suspected abnormal road section.

9. The method according to claim 4, It is characterized in that The training process of the pixel recognition model includes: Get training images; Amplifying the number of the training images to obtain a plurality of the training images; Adjusting the attribute information of some training images among the plurality of training images to obtain a plurality of second sample images; The initial pixel recognition model is trained using the multiple second sample images to obtain the pixel recognition model; the pixel recognition model is used to identify the category to which each pixel in the target image belongs, and the category is a non-obstacle category or an obstacle category.

10. The method according to claim 9, It is characterized in that The attribute information includes at least one of the following: contrast, sharpness, brightness, and noise; The step of adjusting the attribute information of some training images among the plurality of training images to obtain a plurality of second sample images includes: According to preset rules, the contrast, sharpness, brightness, and noise of the part of the training images are adjusted to obtain a part of the adjusted images; the preset rules include contrast values, sharpness values, brightness values, and noise values ​​corresponding to the part of the training images; The partial adjusted image and images other than the partial training images among the plurality of training images are determined as the plurality of second sample images.

11. The method according to claim 3, It is characterized in that The training process of the road state recognition model includes: Acquire a plurality of first sample images, where the first sample images are images taken by a vehicle on a road adjacent to the sample suspected abnormal road section; Determine multiple sample information according to the multiple first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by stitching the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image; The initial road state recognition model is trained using the multiple sample information to obtain the road state recognition model, and the road state recognition model is used to identify the road state of the suspected abnormal road section.

12. A road state detection device, It is characterized in that The device comprises: a first acquisition module, a first determination module, a second acquisition module and a second determination module; wherein, The first acquisition module is used to acquire the driving route of each vehicle including the same road section in the recommended route; The first determination module is used to determine, according to the driving route of each vehicle, a road section in the same road section that has not been driven for more than a preset number of times, and determine the road section that has not been driven for more than a preset number of times as a suspected abnormal road section; The second acquisition module is used to acquire a target image of a road adjacent to the suspected abnormal road section; The second determination module is used to determine the road status of the suspected abnormal road section according to the target image.

13. The device according to claim 12, It is characterized in that The device also includes: an acquisition module, a quantity expansion module, an adjustment module and a training module; wherein, The acquisition module is used to acquire a training image; The quantity amplification module is used to amplify the quantity of the training image to obtain a plurality of the training images; The adjustment module is used to adjust the attribute information of some training images among the plurality of training images to obtain a plurality of second sample images; The training module is used to train the initial pixel recognition model using the multiple second sample images to obtain the pixel recognition model; the pixel recognition model is used to identify the category to which each pixel in the target image belongs, and the category is a non-obstacle category or an obstacle category.

14. The device according to claim 12, It is characterized in that The device further comprises: an acquisition module, a determination module and a training module; wherein, The acquisition module is used to acquire a plurality of first sample images, where the first sample images are images taken by a vehicle on a road adjacent to the sample suspected abnormal road section; The determination module is used to determine a plurality of sample information according to the plurality of first sample images; wherein one first sample image corresponds to one sample information, and the sample information is obtained by splicing the speed and direction angle of the vehicle when the first sample image is taken, the distance between the position of the vehicle when the first sample image is taken and the starting position of the sample suspected abnormal road section, and the image features of the first sample image; The training module is used to train the initial road state recognition model using the multiple sample information to obtain the road state recognition model; the road state recognition model is used to identify the road state of suspected abnormal sections.

15. A server, It is characterized in that include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 11.

16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any one of claims 1 to 11 is implemented.