Road condition prediction method, method for establishing a road condition prediction model, corresponding device, electronic device, recording medium, and computer program
By integrating user trajectory and road image data, the method improves road condition prediction accuracy, addressing sparse trajectory and congestion-related inaccuracies, and enhances route planning and safety through a classification model utilizing image and trajectory features.
Patent Information
- Application Number
- JP2021104711
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-12-03
- Filing Date
- 2021-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Existing road condition prediction methods based on user trajectories suffer from accuracy issues when trajectories are sparse, are inaccurate in complex road scenes, and become unreliable during congestion, leading to ineffective route planning and safety concerns.
A method combining user trajectory and road image data to predict road conditions using a classification model trained on features such as speed, road openness, traffic flow, and architectural features, with image semantic segmentation to identify driving areas and extract relevant road characteristics.
Enhances the accuracy of road condition prediction, particularly in complex environments and during congestion, enabling effective route planning and timely information provision to users.
Smart Images

Figure 0007557433000007 
Figure 0007557433000002 
Figure 0007557433000001
Abstract
Description
[Technical field]
[0001] The present application relates to the technical field of computer applications, in particular to a road condition prediction method in big data technology and intelligent traffic technology, a method for establishing a road condition prediction model and corresponding devices, electronic devices, recording media and computer program products. [Background technology]
[0002] As urban transportation demand increases rapidly, the problem of traffic congestion becomes more and more severe. Traffic congestion increases people's commuting time, wastes fuel, and increases pollution. In addition, this scene also makes traffic accidents more likely to occur, which poses a major safety problem.
[0003] For example, if it becomes possible to predict road conditions in map-based products, it will be possible to provide users with timely reference information to select appropriate routes, and it will also be possible to provide users with better follow-up services such as route planning and route suggestions based on predicted conditions according to road conditions. Summary of the Invention [Problem to be solved by the invention]
[0004] In view of this, the present application provides a road condition prediction method, a method for establishing a road condition prediction model, and corresponding devices, electronic devices, recording media, and computer program products to realize prediction of road conditions. [Means for solving the problem]
[0005] According to a first aspect, the present application provides a method for producing a method for manufacturing a semiconductor device comprising: acquiring a sequence of user trajectories and a sequence of road images within a first predetermined time interval prior to a first point in time on a road; extracting trajectory-related features of the road from the sequence of user trajectories and extracting image-related features of the road from the sequence of road images; inputting the trajectory-related features and image-related features of the road into a road condition prediction model obtained by pre-training, and obtaining road condition information for a predetermined second time interval on the road after the first time point using an estimation result of the road condition prediction model.
[0006] According to a second aspect, the present application provides a method for producing a method for manufacturing a semiconductor device comprising: Obtaining training data, the training data including a user trajectory sequence and a road image sequence for a sample road within a first predetermined time interval prior to a second time point, and a road condition label assigned to the sample road within a second predetermined time interval after the second time point; extracting trajectory-related features of the sample road from the sequence of user trajectories and extracting image-related features of the sample road from the sequence of road images; and training the classification model so that the trajectory-correlated features and the image-related features of the sample road are input to the classification model, and the road condition labels assigned to the sample road are target outputs of the classification model to obtain the road condition prediction model.
[0007] According to a third aspect, the present application provides a method for producing a method for manufacturing a semiconductor device comprising: a sequence acquisition means for acquiring a user trajectory sequence and a road image sequence within a first predetermined time interval prior to a first point in time on a road; feature extraction means for extracting trajectory-related features of the road from the sequence of user trajectories and for extracting image-related features of the road from the sequence of road images; and a road condition estimation means for inputting the trajectory-related features and image-related features of the road into a road condition prediction model obtained by prior training, and obtaining road condition information on the road within a predetermined second time interval after the first time point using an estimation result of the road condition prediction model.
[0008] According to a fourth aspect, the present application provides a method for producing a method for manufacturing a semiconductor device comprising: A sample acquisition means for acquiring training data, the training data including a user trajectory sequence and a road image sequence for a sample road within a first predetermined time interval prior to a second time point, and a road condition label assigned to the sample road within a second predetermined time interval after the second time point; feature extraction means for extracting trajectory-related features of the sample road from the sequence of user trajectories and for extracting image-related features of the sample road from the sequence of road images; and a model training means for training the classification model to obtain the road condition prediction model, such that the trajectory-correlated features and image-related features of the sample road are input to the classification model and the road condition labels assigned to the sample road are target outputs of the classification model.
[0009] According to a fifth aspect, the present application provides an electronic device including at least one processor and a memory in communication with the at least one processor, the memory stores instructions executable by the at least one processor; The instructions, when executed by the at least one processor, enable the at least one processor to perform the method described above.
[0010] According to a sixth aspect, the present application provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method described above.
[0011] According to a seventh aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method described above. Effect of the Invention
[0012] As can be seen from the above technical solution, the present application can realize prediction of road conditions by predicting and obtaining road condition information within a predetermined second time interval after a first time point on a road based on a user trajectory sequence and a road image sequence within a predetermined first time interval before a first time point on the road.
[0013] Other advantages of the above-described optional aspects will be described below with reference to specific examples. [Brief description of the drawings]
[0014] The drawings are for a better understanding of the present invention and do not constitute a limitation to the present application. [Figure 1] FIG. 1 illustrates an exemplary system architecture in which embodiments of the present application may be applied. [Diagram 2] FIG. 2 is a flow chart of the main method of road condition prediction provided by an embodiment of the present application. [Diagram 3] FIG. 3 is a method flow chart of image-related feature extraction provided by an embodiment of the present application. [Figure 4] FIG. 4 is an example diagram of one road image provided by an embodiment of the present application. [Diagram 5] FIG. 5 is a flowchart of a method for establishing a road condition prediction model provided by an embodiment of the present application. [Figure 6] FIG. 6 is a configuration diagram of a road condition prediction device provided by an embodiment of the present application. [Figure 7] FIG. 7 is a diagram of an apparatus for establishing a road condition prediction model provided by an embodiment of the present application. [Figure 8] FIG. 8 is a block diagram of an electronic device for implementing an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, exemplary embodiments of the present application will be described with reference to the drawings. In the following, details of the embodiments of the present application are included for ease of understanding, and it should be understood that these are merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for clarity and simplicity, the following description omits descriptions of known functions and configurations.
[0016] At present, the mainstream method for predicting road conditions is user trajectory mining, that is, estimating future road conditions based on a large amount of historical trajectory and historical road condition information. However, such a method based on user trajectory mining has the following main problems:
[0017] 1) When road trajectory data is sparse, it may seriously affect the accuracy of road condition prediction.
[0018] 2) In complex road scenes, such as tunnels, overpasses, construction sites, and urban canyons, there is serious interference with trajectory positioning, which leads to inaccurate prediction of road conditions.
[0019] 3) When traffic congestion occurs, drivers tend to close map applications, which makes it difficult to obtain the user's trajectory and therefore makes predictions of road conditions inaccurate.
[0020] In view of this, the present application provides a road condition prediction method that combines a user trajectory and a road image, and the method is described in detail below with reference to an embodiment.
[0021] To facilitate understanding of the overall system architecture, Fig. 1 illustrates an exemplary system architecture to which the embodiments of the present application may be applied. As illustrated in Fig. 1, the system architecture may include terminal devices 101 and 102, a network 103, and a server 104. The network 103 is used to provide a medium for a communication link between the terminal devices 101, 102 and the server 104. The network 103 may include various connection types, such as, for example, wired, wireless communication links, or fiber optic cables.
[0022] Users can use terminal devices 101 and 102 to interact with server 104 via network 103. Various applications may be installed on terminal devices 101 and 102, such as map applications, voice interactive applications, web page browser applications, and communication applications.
[0023] The terminal devices 101 and 102 may be various electronic devices capable of supporting and displaying map-like applications, including, but not limited to, smartphones, tablet computers, smart wearable devices, crowdsourcing collection devices, etc. The device provided by the present invention can be installed and executed on the server 104. It may be realized as multiple software or software modules (e.g., used to provide distributed services) or as a single software or software module, and is not specifically limited here.
[0024] For example, the road condition prediction device is installed and executed in the server 104, while the terminal devices 101 and 102 can collect user trajectory data, road image data, etc. as collection devices. The server 104 can acquire and store the user trajectory data, road image data, etc. reported by each of the terminal devices 101 and 102. Of course, a specialized collection device may be responsible for collecting the user trajectory data, road image data, etc. The road condition prediction device estimates the road conditions of the road using the form provided by the embodiment of the present invention, and actively or in response to a request from the terminal device 101 or 102, transmits the road condition information of the road to each of the terminal devices 101 or 102.
[0025] Furthermore, for example, the device for establishing the road condition prediction model is installed and executed in the server 104, and the server 104 is trained using training data to obtain a road condition prediction model, which is stored on the server side, and is used to predict road conditions of roads using this road condition prediction model.
[0026] The server 104 may be a single server or a server group consisting of multiple servers. It should be understood that the number of terminal devices, networks, and servers in FIG. 1 is merely exemplary. Any number of terminal devices, networks, and servers may be included as needed.
[0027] FIG. 2 is a flowchart of a main method of road condition prediction provided by an embodiment of the present application. As shown in FIG. 2, the method may include the following steps:
[0028] In step 201, a user trajectory sequence and a road image sequence within a first predetermined time interval prior to a first point in time on a road are obtained.
[0029] The user trajectory sequence may be a sequence composed of trajectory points corresponding to successive time points reported by a collection terminal having a positioning function (i.e., corresponding to the terminal device shown in FIG. 1). The road image sequence may be a sequence composed of road images collected by a collection terminal having an image collection function. Here, the collection terminal may be images, videos, etc. collected by an intelligent terminal device used by a user, for example, images, videos, etc. collected by a road collection crowdsourcing device on a car. The server side stores the user trajectory sequence and the road image sequence uploaded by the collection terminal.
[0030] In this embodiment, the first time point may be the current time point, that is, the user trajectory sequence and road image sequence in the first time interval before the current time point are used to predict the road condition information in the second time interval in the future.Otherwise, when trying to estimate the road condition information in a certain time period in history, for example, in the second time interval from a certain historical time point, the user trajectory sequence and road image sequence in the first time interval before the historical time point can also be obtained.However, the former is the commonly used scene.
[0031] In step 202, road trajectory related features are extracted from the user trajectory sequence and road image related features are extracted from the road image sequence.
[0032] In this embodiment, the trajectory-related features mainly include speed features, because the speed features can best represent the congestion state of the road. In general, if the speed is continuously high, the road conditions are generally good, and if the speed is continuously low, the road conditions are generally bad.
[0033] In addition to speed features, other features may be extracted from the user trajectory sequence as trajectory related features, such as situations where the trajectory deviates from the road centerline.
[0034] The image-related features may include at least one of a road openness feature, a traffic flow feature, and a building feature. Each of these features can represent the road conditions in which a road may occur to some extent. The specific extraction methods of these features will be described in detail in the following embodiments.
[0035] In step 203, the trajectory-related features and image-related features of the road are input into a road condition prediction model obtained by pre-training, and the estimation result of the road condition prediction model is used to determine road condition information within a predetermined second time interval after the first time point on the road.
[0036] The road condition prediction model is a classification model obtained by actual pre-training, and can predict road condition information in a second time interval after the first time point based on road trajectory related features and image related features in a first time interval before the first time point. The predicted road condition information can include several road condition types, such as smooth, slow, and heavy traffic. Further examples include smooth, slow, heavy traffic, and heavy traffic.
[0037] The training method for the road condition prediction model will be described in detail in the following embodiment.
[0038] As can be seen from the flow shown in the above embodiment, the present application can predict and obtain road condition information within a specified second time interval after a first time point on a road based on a user trajectory sequence and a road image sequence within a specified first time interval before a first time point on the road, thereby realizing prediction of road conditions on a road.
[0039] Hereinafter, a description will be given of how to implement the above step 201 of "obtaining a user trajectory sequence and a road image sequence within a predetermined first time interval prior to a first time point on a road" in accordance with an embodiment.
[0040] The road in the present application may be a road whose road conditions need to be predicted and which is determined using a number of methods, including but not limited to the following:
[0041] In the first embodiment, the target road is a preset road. For example, the target road may be a designated important road.
[0042] The second embodiment is a road within a road condition electronic fence. In this embodiment, an area range can be preset, and this area range can be regarded as a virtual fence, and is called a "road condition electronic fence." The collection terminal reports trajectory points to the server side in real time, and when these trajectory points trigger the road condition electronic fence, for example, indicating that the trajectory points have entered the area of the road condition electronic fence, the collection terminal can be instructed to collect user trajectory sequences and road image sequences of the road within the road condition electronic fence.
[0043] In the third embodiment, the trajectory points are roads that satisfy a preset road condition prediction trigger condition.
[0044] For the collection terminal, since it reports the user trajectory in real time, the server side can identify the number and speed of trajectory points on the road based on various user trajectories, etc. For example, if the number of trajectory points on a road exceeds a certain number or the speed of the trajectory points on a road is lower than a certain speed threshold within a certain time, it can be described that the road condition on this road is not good, and it can be determined that this road is a road whose road condition needs to be predicted.
[0045] In one implementation form, the server side may be configured to transmit road information to a collection terminal, and after receiving the road information, the collection terminal may be configured to collect road images or videos of the road and upload them to the server side.
[0046] In another implementation form, the server side may be configured to send a collection command to a collection terminal located on the road, and after receiving the collection command, the collection terminal may be configured to collect road images or videos on the current road and upload them to the server side.
[0047] road l i On the other hand, the road image sequence collected on this road by the collection terminal is t-N ,I t-N+1 ,···,I t-1 ,I t >, that is, an image sequence composed of N time points before time point t. Accordingly, the collection terminal reports the user trajectory points in real time, and after the trajectory points and each image in the image sequence are one-to-one corresponding to each other according to the time point, the user trajectory sequence is <p t-N ,p t-N+1 ,···,p t-1 ,p t Each trajectory point in the user trajectory sequence can be represented in a manner such as latitude and longitude coordinates.
[0048] Here, when the collection terminal uploads a road image, each road image in the road image sequence can correspond in time to each trajectory point in the user trajectory sequence, so that frames can be extracted from the road image so that the extracted image frames correspond in time to each trajectory point in the user trajectory sequence, and the extracted image frames are configured into a road image sequence.
[0049] Hereinafter, with reference to an embodiment, a description will be given of how to realize the step 202 of "extracting road trajectory-related features from the user trajectory sequence and road image-related features from the road image sequence."
[0050] The road trajectory-related features extracted from the user trajectory sequence mainly include speed features. The instantaneous speed on the road can reflect the road conditions. The instantaneous speed of a trajectory point can be obtained by utilizing the ratio of the distance difference and time difference between two adjacent trajectory points.
[0051] In a preferred embodiment, the velocity features used for the user trajectory sequence can be represented as sequence-level velocity features, including but not limited to velocity mean, velocity variance, etc., for each trajectory point in the user trajectory sequence.
[0052] The image-related features of the road extracted from the road image sequence include, but are not limited to, at least one of road openness features, traffic flow features, and architectural features.
[0053] A preferred embodiment of the image-related feature extraction method is provided here. Referring to Figure 3, it can include the following steps:
[0054] In step 301, a pre-trained image semantic segmentation model is utilized to identify the main driving area from each road image in the road image sequence.
[0055] The image semantic segmentation model is a model commonly used in the field of image processing, which can classify each pixel in an image into a specific type based on the pixel level. In this embodiment, the image semantic segmentation model is used to classify each pixel in a road image into common target area types in road traffic, such as driving area, vehicle, building, street lamp, sky, road obstacle, double yellow line, median strip, stop line, etc.
[0056] 4 shows a road image in a road image sequence collected by a collection terminal provided by an embodiment of the present application. After being identified by the image semantic segmentation model, each pixel belonging to the driving area, each pixel belonging to the vehicle, each pixel belonging to the building, each pixel belonging to the sky, each pixel belonging to the road edge, each pixel belonging to the double yellow line, etc. in this image can be identified.
[0057] When pre-training the image semantic segmentation model, the training data adopted can include various road image samples and labels for each region type in the road image samples. By training the image semantic segmentation model based on the training data, the input of the semantic segmentation model is the road image samples, and the target output is that the classification result for each pixel is consistent with the label for each region type in the road image samples.
[0058] Here, image semantic segmentation models such as DeepLabV3 and RefineNet can be used.
[0059] In this step, the image semantic segmentation model is used to identify the area type corresponding to each pixel for each road image, and then the driving area and at least one kind of road environment area in the road image can be determined. Here, the road environment area may be an area belonging to an object in the road environment, such as an obstacle on the road, a double yellow line, a median strip, a road edge, etc. Using these road environment areas, the main driving area in the road image can be obtained. The main driving area is a driving area in which the collection terminal that collects this road image can travel. The driving area identified by the image semantic segmentation model may include other lanes that do not match the driving direction of the current collection terminal, such as lanes in the opposite direction other than the double yellow line, and further, for example, lanes in the crossing direction of a multi-level road, and further, for example, lanes where road construction is present. All of these lanes are driving areas in which the current collection terminal cannot travel, and it is necessary to exclude them and identify only the driving area in which the collection terminal can travel. The main driving area may include one lane or multiple lanes in the same direction (because when there are multiple lanes, the collection terminal can change lanes and travel).
[0060] More specifically, in general, there are restrictions such as road edges, double yellow lines, medians, and road obstacles in the area where the collection terminal can travel, and for example, the area between the road edge and the double yellow line in the road image captured by the collection terminal is the area where the collection terminal can currently travel, as shown in Figure 4. Furthermore, for example, the area between the road edge and the road obstacle in the road image captured by the collection terminal is the area where the collection terminal can currently travel, and so on. Therefore, in the embodiment of the present application, a linear fitting process can be performed on road environment areas such as road obstacles, double yellow lines, medians, and road edges, and the road area surrounded by these road environment areas after the linear fitting process is the main driving area, or the largest of the road areas surrounded by these road environment areas after the linear fitting process is the main driving area.
[0061] In step 302, the road openness and / or traffic flow information of the main driving area is extracted from each road image.
[0062] In one preferred embodiment, the method for extracting the road openness of the main driving area includes the following steps:
[0063] In step S11, the maximum inscribed rectangle of the road surface within the main driving area is determined.
[0064] In step S12, at least one of the ratio of the area of the maximum inscribed rectangle to the main driving area, the ratio of the width of the maximum inscribed rectangle to the width of the main driving area, and the ratio of the height of the maximum inscribed rectangle to the height of the main driving area is used as an index of the road openness of the main driving area.
[0065] Naturally, in addition to the above embodiment, other methods of extracting the road openness may be adopted, for example, determining the ratio of pixels belonging to the road surface in the main driving area to the pixels belonging to the main driving area, and using this as an index of the road openness of the main driving area.
[0066] In one preferred embodiment, the method for extracting vehicle flow information in the main driving area includes the following steps:
[0067] In step S21, a target detection algorithm is used to extract information on the type, location area and reliability of each vehicle in the road image.
[0068] Here, the target detection algorithm can be, for example, Faster-RCNN or YoloV3. The target detection algorithm can extract various types of vehicles in the road image. The pixels of these vehicles can determine the area in which the vehicles are located, and the area here refers to the area obtained through the image semantic segmentation model described above. In addition, the target detection algorithm can output the reliability of each vehicle, that is, the reliability of the vehicle belonging to the output type.
[0069] In step S22, the following filtering is performed on the vehicles in the road image: filtering out vehicles that are not located in the driving area, filtering out vehicles that do not belong to a predetermined type, and filtering out vehicles whose reliability is lower than a predetermined reliability threshold.
[0070] After all the above filtering is performed, it can be considered that the vehicles in the main driving area that belong to a certain type and whose reliability meets a certain reliability requirement are actually selected, for example, the automobiles in the main driving area are selected.
[0071] In step S23, at least one of the number of vehicles obtained after the filtering process and the ratio of the vehicle area to the area of the main traveling area obtained after the filtering process is used as an index of the vehicle flow information of the main traveling area.
[0072] The area-related ratios in the above steps can be determined by the ratio of the number of pixels in the corresponding areas. For example, the ratio of the vehicle area to the area of the main driving area can be the ratio of the pixels of the corresponding vehicle to the number of pixels in the corresponding main driving area. Other algorithms, such as a geometric algorithm, can also be used.
[0073] Objects at different positions in the image have different effects on the actual situation. For example, a vehicle that appears near the center of the image and at a relatively close image depth has a large effect, while vehicles that appear at both sides at relatively far image depths often have a small effect. Therefore, in a preferred embodiment, a weighting process can be performed on the road openness and traffic flow information according to a predetermined weighting matrix. Here, the weighting matrix corresponds to each position in the road image and is preset according to the position and image depth.
[0074] In step 303, the road openness feature and / or the vehicle flow feature are obtained by using the road openness and / or the vehicle flow information of the main driving area in each road image.
[0075] Since a road image sequence includes multiple road images, in this embodiment, the average value and / or variance of the road openness of each road image in the image sequence can be used as the road openness feature, and the average value and / or variance of the traffic flow of each road image in the image sequence can be used as the road traffic flow feature.
[0076] In addition to the above road openness features and vehicle flow features, architectural features can also be extracted from road images. The classification result of each pixel in each road image by the image semantic segmentation model includes a building area, and the average value and / or variance of the similarity of the building areas of adjacent road images in the road image sequence is taken as the architectural feature of the road.
[0077] In a preferred embodiment, the building features can be obtained after processing the SIFT (Scale-invariant feature transform) algorithm on the building regions in the road images. For a sequence of road images, the similarities of the building features in adjacent road images are calculated in pairs, and then the average value and / or variance of the obtained similarities can be taken as the road architectural features.
[0078] The reason for using architectural features is that when traffic congestion occurs, vehicles move slowly and the changes in buildings in each road image in the road image sequence collected by the collection terminal are very small, i.e., the similarity is high. The higher the average similarity value of building features in the road image, the more serious the reflected congestion is.
[0079] Hereinafter, the above step 203, “inputting the trajectory-related features and image-related features of the road into a road condition prediction model obtained by pre-training, and determining road condition information within a predetermined second time interval after the first time point on the road using the estimation result of the road condition prediction model”, will be described in detail with reference to the examples.
[0080] In the embodiments of the present application, the road condition prediction model may be substantially a classification model, such as a Gradient Boosting Decision Tree (GBDT), Deep Neural Networks (DNN), Logistic Regression (LR), support vector machines (SVM), and other models.
[0081] For a road, after the trajectory-related features and image-related features of the road are inputted into the road condition prediction model, the road condition prediction model can output the road condition information of the road, which may be several predetermined road condition types, for example, two types of traffic jam and smooth, three types of traffic jam, slow driving, smooth, or four types of heavy traffic jam, traffic jam, slow driving, smooth, etc.
[0082] In addition to the road trajectory-related features and image-related features extracted in step 202 above, time features corresponding to a predetermined first time interval prior to the first time point, road attribute features, etc. can be input to the road condition prediction model.
[0083] Here, the time feature may include at least one of whether it is a holiday or not, whether it is a work day or not, whether it is work starting time or not, whether it is work leaving time or not, etc. The reason for introducing the time feature is that road conditions generally have certain rules over time, and whether it is a work day, commuting time or not both have a large impact on road conditions.
[0084] The road attribute features may include at least one of the number of lanes, whether a road is a two-way road, road level, etc. The reason why road attribute features are introduced is that roads with different attributes generally correspond to different road capacities, and different road capacities have a direct impact on road conditions.
[0085] FIG. 5 is a flowchart of a method for establishing a road condition prediction model provided by an embodiment of the present application. As shown in FIG. 5, the method may include the following steps:
[0086] In step 501, training data is obtained, the training data including a user trajectory sequence and a road image sequence within a predetermined first time interval prior to a second time point on a sample road, and a road condition label assigned to the sample road within a predetermined second time interval after the second time point.
[0087] The training data can be obtained from the historical data of the collection terminal, and the above-mentioned second time point is a historical time point. The server side can obtain user trajectory sequences and road image sequences for sample roads collected by the collection terminal within a predetermined first time interval prior to this historical time point. In addition, the road conditions within a predetermined second time interval after the second time point are also historical data, and road condition labels can be assigned to each sample road by a manual assignment method.
[0088] The sample road may be a road for which the trajectory data and road image data collected by the collection terminal are complete and the road conditions are clear, or may be a road selected based on other criteria.
[0089] In step 502, trajectory-related features of the sample road are extracted from the user trajectory sequence, and image-related features of the sample road are extracted from the road image sequence.
[0090] The extraction method for the trajectory-related features and image-related features of the sample road is the same as the extraction method for the trajectory-related features and image-related features used in step 202 of the embodiment shown in FIG. 2, so the description is omitted here and the relevant descriptions in the above embodiments can be referred to.
[0091] In step 503, the classification model is trained to obtain the road condition prediction model, such that the trajectory-related features and image-related features of the sample road are the input of the classification model, and the road condition labels assigned to the sample roads are the target output of the classification model.
[0092] The classification model used here may be a model such as a Gradient Boosting Decision Tree (GBDT), Deep Neural Networks (DNN), Logistic Regression (LR), or Support Vector Machines (SVM).
[0093] The road condition labels may be divided into two types, for example, heavy traffic and smooth. The road condition labels may be divided into three types, for example, heavy traffic, slow moving, and smooth. The road condition labels may be further divided into four types, for example, heavy traffic, heavy traffic, slow moving, and smooth.
[0094] Furthermore, in addition to the trajectory-related features and image-related features of the sample road, the features input to the classification model may further include time features corresponding to a predetermined first time interval prior to the second time point, and / or attribute features of the sample road.
[0095] Here, the time feature may include at least one of whether it is a holiday or not, whether it is a work day or not, whether it is work starting time or not, whether it is work leaving time or not, etc. The reason for introducing the time feature is that road conditions generally have certain rules over time, and whether it is a work day, commuting time or not, etc., all have a large effect on road conditions.
[0096] The road attribute features may include at least one of the number of lanes, whether a road is a two-way road, road level, etc. The reason why road attribute features are introduced is that roads with different attributes generally correspond to different road capacities, and different road capacities have a direct impact on road conditions.
[0097] During the training process, a loss function is constructed using the difference between the output of the classification model and the target output, and the parameter of the classification model is updated by forward feedback using the value of the loss function, and the training is stopped until a training stopping condition is reached, where the training stopping condition may be, for example, that the value of the loss function is equal to or less than a predetermined loss function threshold, that the number of iterations reaches a predetermined number threshold, etc.
[0098] Here, in the training process, the training can be performed using the k-fold (k-fold cross-validation) method. That is, the training data is divided into k parts, where k is a positive integer greater than 1. In each part, one part is selected as test data, and the other (k-1) parts are training data. The training data of each part is used to train a classification model, and the test data is used to perform testing, thereby obtaining k classification models and the error rates of the k classification models in the test data. Among them, the classification model with the smallest average error rate is selected, and the classification model is further trained using all the training data to obtain the final road condition prediction model.
[0099] The above is a detailed description of the method provided in the present application, and the following is a detailed description of the apparatus provided in the present application with reference to the embodiments.
[0100] FIG. 6 is a configuration diagram of a road condition prediction device provided by an embodiment of the present application. This device may be an application located on the server side, or a functional unit such as a plug-in or software development kit (SDK) in an application located on the server side, or may be located on a computer terminal with higher computing power. As shown in FIG. 6, this road condition prediction device 600 may include a sequence acquisition means 01, a feature extraction means 02, and a road condition estimation means 03, and may further include an information exchange means 04. Here, the main functions of each component means are as follows:
[0101] The sequence acquisition means 01 is used for acquiring a user trajectory sequence and a road image sequence within a first predetermined time interval prior to a first time point on a road.
[0102] Here, the roads include at least one of a preset target road, a road within a road condition electronic fence, and a road whose trajectory points satisfy a preset road condition prediction trigger condition.
[0103] The information exchange means 04 is used to transmit road information to a collection terminal and acquire user trajectory sequences and road image sequences collected by the collection terminal, or to transmit a collection command to a collection terminal on the road and acquire user trajectory sequences and road image sequences collected by the collection terminal.
[0104] The feature extraction means 02 is used for extracting road trajectory related features from the user trajectory sequence and for extracting road image related features from the road image sequence.
[0105] Here, the road trajectory-related features extracted from the user trajectory sequence mainly include speed features. The instantaneous speed on the road can reflect the road conditions. The instantaneous speed of a trajectory point can be obtained by using the ratio of the distance difference and the time difference between two adjacent trajectory points.
[0106] The image-related features include at least one of a road openness feature, a traffic flow feature, and an architectural feature.
[0107] In a preferred embodiment, when the feature extraction means 02 extracts image-related features of roads from a road image sequence, it can utilize an image semantic segmentation model obtained by pre-training to identify a main driving area from each road image in the road image sequence, extract the road openness and / or vehicle flow information of the main driving area from each road image, and obtain road openness features and / or vehicle flow features using the road openness and / or vehicle flow information of the main driving area in each road image.
[0108] Here, when the feature extraction means 02 identifies the main driving area from each road image in a road image sequence using an image semantic partitioning model obtained through pre-training, the feature extraction means 02 uses the image semantic partitioning model obtained through pre-training to identify the area type corresponding to each pixel for each road image, thereby determining the driving area and at least one type of road environment area in the road image, and determining the main driving area from the driving area using the at least one type of road environment area.
[0109] Objects at different positions in the image have different effects on the actual situation. For example, a vehicle that appears near the center of the image and at a relatively close image depth has a large effect, while vehicles that appear at both sides at relatively far image depths often have a small effect. Therefore, in a preferred embodiment, a weighting process can be performed on the road openness and traffic flow information according to a predetermined weighting matrix. Here, the weighting matrix corresponds to each position in the road image and is preset according to the position and image depth.
[0110] Since a road image sequence includes a plurality of road images, in this embodiment, the average value and / or variance of the road openness of each road image in the image sequence can be used as the road openness feature, and the average value and / or variance of the traffic flow of each road image in the image sequence can be used as the road traffic flow feature.
[0111] When extracting image-related features of roads from a road image sequence, the feature extraction means 02 can utilize an image semantic segmentation model obtained through pre-training to identify building areas from each road image in the road image sequence, and use the average similarity and / or variance of the building areas of adjacent road images in the road image sequence as the architectural features of the road.
[0112] The road condition estimation means 03 is used to input the trajectory-related features and image-related features of the road into a road condition prediction model obtained by pre-training, and to acquire road condition information within a predetermined second time interval after a first time point on the road using the estimation result of the road condition prediction model.
[0113] Furthermore, the road condition estimation means 03 can further input time features corresponding to a first time interval prior to the first time point and / or road attribute features into the road condition prediction model obtained by pre-training.
[0114] Here, the time feature may include at least one of whether it is a holiday or not, whether it is a work day or not, whether it is work starting time or not, whether it is work leaving time or not, etc. The reason for introducing the time feature is that road conditions generally have certain rules over time, and whether it is a work day, commuting time or not, etc., all have a large effect on road conditions.
[0115] The road attribute features may include at least one of the number of lanes, whether a road is a two-way road, road level, etc. The reason why road attribute features are introduced is that roads with different attributes generally correspond to different road capacities, and different road capacities have a direct impact on road conditions.
[0116] The road condition prediction model may be substantially a classification model, for example, a GBDT, DNN, LR, SVM, or other model may be used.
[0117] For a road, after the trajectory-related features and image-related features of the road are inputted into the road condition prediction model, the road condition prediction model can output the road condition information of the road, which may be several predetermined road condition types, for example, two types of congestion and smooth, three types of congestion, slow driving, smooth, or four types of heavy congestion, congestion, slow driving, smooth, etc.
[0118] 7 is a configuration diagram of an apparatus for establishing a road condition prediction model provided by an embodiment of the present application. This apparatus may be an application located on the server side, or a functional unit such as a plug-in or SDK in an application located on the server side, or may be located on a computer terminal with higher computing power. As shown in FIG. 7, the apparatus 700 for establishing a road condition prediction model can include a sample acquisition means 11, a feature extraction means 12, and a model training means 13. Here, the main functions of each component means are as follows:
[0119] The sample acquisition means 11 is used to acquire training data including a user trajectory sequence and a road image sequence within a predetermined first time interval prior to a second time point on a sample road, and a road condition label assigned to the sample road within a predetermined second time interval after the second time point.
[0120] The feature extraction means 12 is used for extracting trajectory-related features of the sample road from the user trajectory sequence and for extracting image-related features of the sample road from the road image sequence.
[0121] Here, the trajectory-related features include speed features.
[0122] The image-related features include at least one of a road openness feature, a traffic flow feature, and an architectural feature.
[0123] In a preferred embodiment, when the feature extraction means 12 extracts image-related features of a sample road from a road image sequence, it can utilize an image semantic segmentation model obtained by prior training to identify a main driving area from each road image in the road image sequence, extract road openness and / or vehicle flow information of the main driving area from each road image, and obtain road openness features and / or vehicle flow features using the road openness and / or vehicle flow information of the main driving area in each road image.
[0124] Here, when the feature extraction means 12 identifies the main driving area from each road image in a road image sequence using an image semantic partitioning model obtained through pre-training, it uses the image semantic partitioning model obtained through pre-training to identify the area type corresponding to each pixel for each road image, thereby determining the driving area and at least one type of road environment area in the road image, and can determine the main driving area from the driving area using the at least one type of road environment area.
[0125] When extracting image-related features of a sample road from a road image sequence, the feature extraction means 12 can utilize an image semantic segmentation model obtained through pre-training to identify building areas from each road image in the road image sequence, and use the average similarity and / or variance of the building areas of adjacent road images in the road image sequence as the architectural features of the road.
[0126] The model training means 13 is used to train the classification model to obtain a road condition prediction model, so that the trajectory-related features and image-related features of the sample road are used as inputs of the classification model, and the road condition labels assigned to the sample roads are used as target outputs of the classification model.
[0127] Furthermore, the model training means 13 may further input the time features corresponding to a first predetermined time interval prior to the second time point and / or the attribute features of the sample road into the classification model.
[0128] The classification model used here may be a model such as GBDT, DNN, LR, SVM, etc.
[0129] The road condition labels may be divided into two types, for example, heavy traffic and smooth. The road condition labels may be divided into three types, for example, heavy traffic, slow moving, and smooth. The road condition labels may be further divided into four types, for example, heavy traffic, heavy traffic, slow moving, and smooth.
[0130] The above method and apparatus provided by the embodiments of the present application can be applied to, but not limited to, the following scenes:
[0131] Scene 1 After performing road condition prediction for the roads using the method and apparatus provided by the embodiments of the present application, the road condition information for each road is displayed in a map application, for example, by using different colors to distinguish the congestion status of each road on the map.
[0132] Scene 2 After the method and apparatus provided by the embodiment of the present application is used to predict the road conditions, when a user requests to make a route plan, roads in a congested state will be avoided as much as possible.
[0133] Scene 3 After the road condition prediction of a road is performed using the method and device provided by the embodiment of the present application, the road information of the congested road is reported to a radio station for playback, or transmitted to a client of a map application for audio broadcast or displayed in the form of text on the interface.
[0134] Scene 4 After the method and device provided by the embodiment of the present application is used to predict the road conditions of the roads, the road condition information of each road is stored in a database, and in response to a search request for the road conditions of a road on which a terminal device is located, the road condition information of the road is sent to the terminal device.
[0135] According to an embodiment of the present application, the present application further provides an electronic device and a computer-readable storage medium.
[0136] As shown in FIG. 8, a block diagram of an electronic device according to the road condition prediction method and the method of establishing a road condition prediction model of the embodiment of the present application is shown. The electronic device is intended to represent various types of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may represent various types of mobile devices, such as personal digital assistants, mobile phones, smartphones, wearable devices, and other similar computing devices. The components shown in the present application, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present application as described and / or claimed herein.
[0137] As shown in FIG. 8, the electronic device includes one or more processors 801, memory 802, and interfaces, including high-speed and low-speed interfaces, for connecting the components. The components may be connected to each other by different buses and installed on a common main board, or may be installed in other manners as needed. The processor may process commands to be executed within the electronic device, including commands stored in or on the memory to display graphical information of a GUI on an external input-output device (e.g., a display device coupled to the interface). In other embodiments, multiple processors and / or multiple buses may be used along with multiple memories as needed. Similarly, multiple electronic devices may be connected, each providing some required operation (e.g., a server array, a set of blade servers, or a multi-processor system). In FIG. 8, one processor 801 is taken as an example.
[0138] The memory 802 is a non-transitory computer-readable storage medium provided by the present application, in which the memory stores instructions executable by at least one processor to cause the at least one processor to execute the road condition prediction method and the method for establishing a road condition prediction model provided by the present application. The non-transitory computer-readable storage medium stores computer commands, which are used to cause a computer to execute the road condition prediction method and the method for establishing a road condition prediction model provided by the present application.
[0139] The memory 802 is a non-transitory computer-readable storage medium used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program command units corresponding to the road condition prediction method and the method for establishing a road condition prediction model in the embodiments of the present application. The processor 801 executes the non-transitory software programs, commands and units stored in the memory 802 to execute various functional applications and data processing of the server, i.e., to realize the method in the above method embodiments.
[0140] The memory 802 may include a program storage area and a data storage area, in which the program storage area may store an operating system and at least one application program required for the function, and the data storage area may store data generated in accordance with the use of the electronic device. The memory 802 may also include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid storage device. In some embodiments, the memory 802 may optionally include a memory that is remotely located with respect to the processor 801, and the remote memory may be connected to the electronic device via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0141] The electronic device may further include an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803, and the output device 804 may be connected via a bus or in another manner, and in FIG. 8, they are connected via a bus as an example.
[0142] The input device 803 may receive input digital or character information and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a lever, etc. The output device 804 may include a display device, an auxiliary lighting device (e.g., LED), a tactile feedback device (e.g., vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
[0143] Each embodiment of the systems and techniques described herein may be realized in digital electronic circuitry systems, integrated circuit systems, dedicated ASICs (Application Specific Integrated Circuits), computer hardware, firmware, software, and / or combinations thereof. Each of these embodiments may include being embodied in one or more computer programs that may be executed and / or interpreted on a programmable system that includes at least one programmable processor, which may be a dedicated or common programmable processor, and may receive data and instructions from and transmit data and instructions to a storage system, at least one input device, and at least one output device.
[0144] These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for a programmable processor and may be implemented by high-level process and / or object-oriented programming languages and / or assembly and machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., magnetic disks, optical disks, memories, programmable logic devices (PLDs)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions that are machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0145] To provide for interaction with a user, the systems and techniques described herein may 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 a user, and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other types of devices may be used to provide interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or haptic feedback) and input from the user may be received in any form (including voice input, speech input, or tactile input).
[0146] The systems and techniques described herein may be implemented in a computing system including background components (e.g., a data server), or middleware components (e.g., an application server), or front-end components (e.g., a user computer having a graphical user interface or network browser through which a user can interact with embodiments of the systems and techniques described herein), or any combination of such background, middleware, or front-end components. The components of the system may be interconnected via 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.
[0147] A computer system may include clients and servers that are generally remote from each other and typically interact through a communication network. The relationship of client and server is formed by computer programs running on corresponding computers and having a client-server relationship to each other.
[0148] It should be understood that steps can be rearranged, added, or removed using the various types of flows shown above. For example, each step described herein can be performed in parallel, sequentially, or in a different order, and the present disclosure is not limited thereto as long as the technical solution disclosed herein can achieve the desired results.
[0149] The above specific embodiments do not constitute limitations on the scope of protection of the present application. Those skilled in the art should understand that various modifications, combinations, subcombinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A road condition prediction method, comprising: acquiring a sequence of user trajectories and a sequence of road images within a first predetermined time interval prior to a first point in time on a road; extracting trajectory-related features of the road from the sequence of user trajectories and extracting image-related features of the road from the sequence of road images; inputting the trajectory-related features and image-related features of the road into a road condition prediction model obtained by pre-training, and obtaining road condition information for the road within a predetermined second time interval after the first time point using an estimation result of the road condition prediction model; The trajectory-related features include velocity features; The image-related features include at least one of a road openness feature and a traffic flow feature, and a building feature; Extracting image related features of the road from the sequence of road images comprises: Identifying a main driving area from each road image in the road image sequence using a pre-trained image semantic segmentation model; extracting road openness and / or traffic flow information of the main driving area from each road image; Obtaining the road openness feature and / or the vehicle flow feature by utilizing the road openness and / or the vehicle flow information of the main driving area in each road image; identifying building regions from each road image in the sequence of road images using a pre-trained image semantic segmentation model; and determining the average similarity and / or variance of building regions of adjacent road images in the road image sequence as the architectural feature of the road. A method for predicting road conditions.
2. The roads include at least one of a preset target road, a road within a road condition electronic fence, and a road whose trajectory points satisfy a preset road condition prediction trigger condition. The method for predicting road conditions according to claim 1 .
3. Sending information about the road to a collection terminal, and obtaining a user trajectory sequence and a road image sequence collected by the collection terminal; or sending a collection command to a collection terminal on the road, and acquiring a user trajectory sequence and a road image sequence collected by the collection terminal. The method for predicting road conditions according to claim 1 or 2.
4. Using the pre-trained image semantic segmentation model to identify a main driving area from each road image in the road image sequence, Using an image semantic segmentation model obtained by training in advance, by identifying an area type corresponding to each pixel for each road image, a driving area and at least one kind of road environment area in the road image are determined; and determining a main driving area from the driving area by using the at least one road environment area. The method for predicting road conditions according to claim 1 .
5. The features input to the road condition prediction model further include: a time feature corresponding to a first predetermined time interval prior to the first time point, and / or an attribute feature of the road. The method for predicting road conditions according to claim 1 .
6. obtaining training data including a user trajectory sequence and a road image sequence for a sample road within a first predetermined time interval prior to a second time point, and a road condition label assigned to the sample road within a second predetermined time interval after the second time point; extracting trajectory-related features of the sample road from the sequence of user trajectories and extracting image-related features of the sample road from the sequence of road images; training the classification model to obtain a road condition prediction model, the classification model including the trajectory-correlated features and the image-related features of the sample road as inputs to the classification model and the road condition labels assigned to the sample road as target outputs of the classification model; The trajectory-related features include velocity features; The image-related features include at least one of a road openness feature and a traffic flow feature, and a building feature; Extracting image-related features of the sample road from the sequence of road images includes: Identifying a main driving area from each road image in the road image sequence using a pre-trained image semantic segmentation model; extracting road openness and / or traffic flow information of the main driving area from each road image; Obtaining the road openness feature and / or the vehicle flow feature by utilizing the road openness and / or the vehicle flow information of the main driving area in each road image; identifying building regions from each road image in the sequence of road images using a pre-trained image semantic segmentation model; determining the average similarity and / or variance of building regions of adjacent road images in the road image sequence as the architectural feature of the sample road. How to establish road condition prediction model.
7. Using the pre-trained image semantic segmentation model to identify a main driving area from each road image in the road image sequence, Using an image semantic segmentation model obtained by training in advance, by identifying an area type corresponding to each pixel for each road image, a driving area and at least one kind of road environment area in the road image are determined; and determining a main driving area from the driving area by using the at least one road environment area. The method for establishing a road condition prediction model according to claim 6.
8. The input of the classification model further comprises: a time feature corresponding to a first predetermined time interval prior to the second time point, and / or an attribute feature of the sample road. The method for establishing a road condition prediction model according to claim 6.
9. a sequence acquisition means for acquiring a user trajectory sequence and a road image sequence within a first predetermined time interval prior to a first point in time on a road; feature extraction means for extracting trajectory-related features of the road from the sequence of user trajectories and for extracting image-related features of the road from the sequence of road images; a road condition estimation means for inputting the trajectory-related features and image-related features of the road into a road condition prediction model obtained by training in advance, and obtaining road condition information on the road within a predetermined second time interval after the first time point by utilizing an estimation result of the road condition prediction model, The trajectory-related features include velocity features; The image-related features include at least one of a road openness feature and a traffic flow feature, and a building feature; When extracting image-related features of the road from the road image sequence, the feature extraction means specifically Identifying a main driving area from each road image in the road image sequence using a pre-trained image semantic segmentation model; extracting road openness and / or traffic flow information of the main driving area from each road image; Obtaining the road openness feature and / or the vehicle flow feature by utilizing the road openness and / or the vehicle flow information of the main driving area in each road image; identifying building regions from each road image in the sequence of road images using a pre-trained image semantic segmentation model; determining the average similarity and / or variance of building regions of adjacent road images in the road image sequence as architectural features of the road. Road condition prediction device.
10. The roads include at least one of a preset target road, a road within a road condition electronic fence, and a road whose trajectory points satisfy a preset road condition prediction trigger condition. The road condition prediction device according to claim 9.
11. The information exchange means further includes an information exchange means for transmitting information of the road to a collection terminal and acquiring a user trajectory sequence and a road image sequence collected by the collection terminal, or for transmitting a collection command to a collection terminal on the road and acquiring a user trajectory sequence and a road image sequence collected by the collection terminal. The road condition prediction device according to claim 9 or 10.
12. The feature extraction means, when identifying a main driving area from each road image in the road image sequence using an image semantic segmentation model obtained by training in advance, specifically performs the following steps: Using an image semantic segmentation model obtained by training in advance, by identifying an area type corresponding to each pixel for each road image, a driving area and at least one kind of road environment area in the road image are determined; and determining a main driving area from the driving area by using the at least one kind of road environment area. The road condition prediction device according to claim 9.
13. The road condition estimation means is also used to further input time features corresponding to a predetermined first time interval prior to the first time point and / or attribute features of the road into the road condition prediction model obtained by pre-training. The road condition prediction device according to claim 9.
14. a sample acquisition means for acquiring training data including a user trajectory sequence and a road image sequence for a sample road within a first predetermined time interval prior to a second time point, and a road condition label assigned to the sample road within a second predetermined time interval after the second time point; feature extraction means for extracting trajectory-related features of the sample road from the sequence of user trajectories and for extracting image-related features of the sample road from the sequence of road images; a model training means for training the classification model to obtain a road condition prediction model, the classification model being configured so that the trajectory-correlated features and image-related features of the sample roads are input to the classification model, and the road condition labels assigned to the sample roads are target outputs of the classification model; The trajectory-related features include velocity features; The image-related features include at least one of a road openness feature and a traffic flow feature, and a building feature; The feature extraction means, when extracting image-related features of the sample road from the road image sequence, specifically performs the following steps: Identifying a main driving area from each road image in the road image sequence using a pre-trained image semantic segmentation model; extracting road openness and / or traffic flow information of the main driving area from each road image; Obtaining the road openness feature and / or the vehicle flow feature by utilizing the road openness and / or the vehicle flow information of the main driving area in each road image; identifying building regions from each road image in the sequence of road images using a pre-trained image semantic segmentation model; determining the average similarity and / or variance of building regions of adjacent road images in the road image sequence as the architectural feature of the sample road. A device for establishing road condition prediction models.
15. The feature extraction means, when identifying a main driving area from each road image in the road image sequence using an image semantic segmentation model obtained by training in advance, specifically performs the following steps: Using an image semantic segmentation model obtained by training in advance, by identifying an area type corresponding to each pixel for each road image, a driving area and at least one kind of road environment area in the road image are determined; and determining a main driving area from the driving area by using the at least one kind of road environment area. An apparatus for establishing a road condition prediction model according to claim 14.
16. The model training means is also used to further input time features corresponding to a first predetermined time interval prior to the second time point and / or attribute features of the sample roads as inputs to the classification model. An apparatus for establishing a road condition prediction model according to claim 14.
17. 1. An electronic device including at least one processor and a memory in communication with the at least one processor, commands stored in the memory that can be executed by the at least one processor; The command is executed by the at least one processor, whereby the at least one processor can execute the road condition prediction method according to any one of claims 1 to 5. electronic equipment.
18. A non-transitory computer-readable storage medium storing computer commands for causing a computer to execute the road condition prediction method according to any one of claims 1 to 5.
19. A computer program which, when executed by a processor, realizes the road condition prediction method according to any one of claims 1 to 5.
