Smart city traffic management method based on artificial intelligence

By acquiring and training traffic data, analyzing traffic patterns and irregular behaviors, and preventing traffic accidents, it solves the problems of insufficient data quality and slow response in existing smart city traffic management methods, and improves traffic management efficiency and safety.

CN118736819AInactive Publication Date: 2024-10-01HANGZHOU BONIAN CULTURAL & CREATIVE CO LTD

Patent Information

Application Number
CN202410656720.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing smart city traffic management methods based on artificial intelligence have deficiencies in data quality and accuracy, are unable to respond quickly and accurately to complex and changing traffic conditions, and are not effective in preventing traffic accidents.

Method used

By acquiring historical and real-time traffic data, we can train the patterns of traffic flow information and congestion information, monitor traffic data in real time, analyze traffic irregularities and accident risk factors, and prevent traffic accidents.

Benefits of technology

It improves the quality and accuracy of traffic data, enables rapid response in complex traffic situations, improves traffic management efficiency, and effectively reduces the probability of traffic accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004858030770000011
    Figure HDA0004858030770000011
  • Figure HDA0004858030770000012
    Figure HDA0004858030770000012
  • Figure HDA0004858030770000021
    Figure HDA0004858030770000021
Patent Text Reader

Abstract

The invention relates to the technical field of urban traffic management, in particular to a smart urban traffic management method based on artificial intelligence, which improves the quality and accuracy of data by training first traffic data and second traffic data, obtains traffic laws corresponding to traffic flow information and traffic jam information, and improves the traffic efficiency. Therefore, the traffic flow information and the traffic jam information in the target time period can be predicted conveniently, a user can select a proper route to go out conveniently, and the experience feeling of the user and the traffic management efficiency are improved. The second traffic data is monitored in real time, so that professionals can more timely and quickly process the traffic non-standard behaviors corresponding to the second traffic data, traffic congestion is reduced, and the processing efficiency of the professionals on the traffic non-standard behaviors is improved; the method comprises the following steps: determining risk factors and regional information of a traffic accident corresponding to third traffic data; according to the risk factors and the regional information, the occurrence of traffic accidents is prevented, and the probability of traffic accident occurrence is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of urban traffic management, and in particular to a smart city traffic management method based on artificial intelligence. Background Art

[0002] With the development of science and technology, artificial intelligence technology is being used more and more widely in various fields, among which urban traffic management is one of the important application fields. As an important trend in the current urban development, one of the cores of smart city construction is to use advanced technical means to improve the efficiency, safety and sustainability of urban traffic systems. Against this background, smart city traffic management methods based on artificial intelligence have emerged. However, although the existing smart city traffic management methods based on artificial intelligence have improved the efficiency and safety of urban traffic systems to a certain extent, there are still some problems and shortcomings: First, most of the existing smart city traffic management methods based on artificial intelligence rely on a large amount of historical traffic data and real-time traffic information, and the quality and accuracy of the data are not high; secondly, the existing smart city traffic management methods based on artificial intelligence often cannot respond quickly and accurately when dealing with complex and changeable traffic conditions, resulting in poor management effects; in addition, the existing methods need to be strengthened in preventing traffic accidents. Therefore, in the future smart city traffic management methods based on artificial intelligence, how to improve the quality and accuracy of data and respond quickly and accurately when facing complex and changeable traffic conditions, and reduce the probability of traffic accidents has become an urgent problem to be solved. Summary of the invention

[0003] The main purpose of the embodiments of the present invention is to provide an artificial intelligence-based smart city traffic management method and related devices, aiming to solve the technical problems that the data quality and data accuracy in the existing artificial intelligence-based smart city traffic management methods are not high, and when dealing with complex and changeable traffic conditions, they are often unable to respond quickly and accurately, and the existing artificial intelligence-based smart city traffic management methods cannot accurately predict the occurrence of traffic accidents.

[0004] In a first aspect, an embodiment of the present invention provides a smart city traffic management method based on artificial intelligence, comprising:

[0005] Acquire first traffic data and second traffic data;

[0006] Training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow information and traffic congestion information;

[0007] According to the traffic law, predict the traffic flow information and the traffic congestion information within the target time period;

[0008] monitoring the second traffic data in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data;

[0009] determining the second traffic data corresponding to the irregular traffic behavior as third traffic data;

[0010] Performing data analysis on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data;

[0011] Prevent the traffic accident from occurring based on the risk factors and the area information.

[0012] In a second aspect, an embodiment of the present invention provides a smart city traffic management device based on artificial intelligence, comprising:

[0013] A data acquisition module, used to acquire the first traffic data and the second traffic data;

[0014] A traffic law determination module, used for training the first traffic data and the second traffic data to obtain traffic laws corresponding to traffic flow information and traffic congestion information;

[0015] An information prediction module, used to predict the traffic flow information and the traffic congestion information within a target time period according to the traffic law;

[0016] A data detection module, used for monitoring the second traffic data in real time, so as to promptly process the traffic irregularities corresponding to the second traffic data;

[0017] a data determination module, configured to determine the second traffic data corresponding to the irregular traffic behavior as third traffic data;

[0018] an information determination module, configured to perform data analysis on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data;

[0019] A prevention module is used to prevent the occurrence of the traffic accident based on the risk factors and the area information.

[0020] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any one of the artificial intelligence-based smart city traffic management methods provided in the specification of the present invention are implemented.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any step of the artificial intelligence-based smart city traffic management method provided in the specification of the present invention.

[0022] An embodiment of the present invention provides a smart city traffic management method based on artificial intelligence, and the smart city traffic management method based on artificial intelligence includes: acquiring first traffic data and second traffic data; training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow information and traffic congestion information; predicting the traffic flow information and the traffic congestion information within a target time period according to the traffic rules; monitoring the second traffic data in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data; determining the second traffic data corresponding to the traffic irregularities as third traffic data; performing data analysis on the third traffic data to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data; and preventing the occurrence of the traffic accidents according to the risk factors and the regional information. In the smart city traffic management method based on artificial intelligence, the first traffic data and the second traffic data are obtained, and the traffic laws corresponding to the traffic flow information and the traffic congestion information are determined; according to the traffic laws, the traffic flow information and the traffic congestion information within the target time period are predicted, and based on the traffic laws, the first traffic data and the second traffic data obtained can be accurately judged to improve the quality and accuracy of the data, and then the traffic flow information and the traffic congestion information within the target time period can be accurately predicted; at the same time, when facing complex and changeable traffic conditions, accurate second traffic data is obtained through real-time monitoring, so as to timely handle the traffic irregularities corresponding to the second traffic data, quickly respond to the abnormal traffic conditions that occur, and improve the management efficiency of urban traffic; further, by performing data analysis on the third traffic data corresponding to the traffic irregularities, the risk factors and regional information of traffic accidents corresponding to the third traffic data are determined, and corresponding measures are taken according to the risk factors and regional information to achieve the purpose of preventing the occurrence of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1A flow chart of a smart city traffic management method based on artificial intelligence provided by an embodiment of the present invention;

[0025] Figure 2 A schematic diagram of the module structure of a smart city traffic management device based on artificial intelligence provided by an embodiment of the present invention;

[0026] Figure 3 A schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0029] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] The embodiment of the present invention provides a smart city traffic management method based on artificial intelligence and a related device. The smart city traffic management method based on artificial intelligence can be applied to electronic devices, such as electronic watches, electronic bracelets, electronic displays, etc.

[0031] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0032] Please refer to Figure 1 , Figure 1 A flow chart of a smart city traffic management method based on artificial intelligence provided by an embodiment of the present invention.

[0033] like Figure 1 As shown, the artificial intelligence-based smart city traffic management method includes steps S101 to S107.

[0034] Step S101: Acquire first traffic data and second traffic data.

[0035] Specifically, the first traffic data is historical traffic data; the second traffic data is real-time traffic data; wherein the first traffic data and the second traffic data may include: road condition data, vehicle flow data, weather condition data, traffic accident data, and the like.

[0036] Exemplarily, the first traffic data stored in the memory can be directly extracted by calling the memory of the traffic monitoring camera. For example, the first traffic data corresponding to each image information or video information within the past month can be extracted from the memory. Of course, it is understandable that within the storage capacity of the memory, at least one set of first traffic data within any suitable time period such as two months or three months can also be extracted, and this application does not limit this.

[0037] In addition, if the memory does not store the first traffic data, but directly stores the image information or video information collected by the traffic camera during the corresponding time period, then after extracting the image information or video information corresponding to the traffic in a specific area in the previous time period from the memory, the first traffic data corresponding to each of the above image information or video information is obtained based on digital image processing technology or image extraction algorithm.

[0038] It should be noted that each image information and each video information corresponds to a set of first traffic data and a set of second traffic data. Therefore, at least one set of first traffic data and at least one set of second traffic data can be obtained in the end.

[0039] Among them, digital image processing technology includes: geometric processing, arithmetic processing, image enhancement, image restoration, image reconstruction, image recognition, etc. Image extraction algorithm includes: at least one of Histogram of Oriented Gradient (HOG) feature, Local Binary Pattern (LBP), Haar-like feature.

[0040] It should be noted that in actual applications, appropriate digital image processing technology and image extraction algorithm can be selected according to actual conditions, and this application does not impose any restrictions on this.

[0041] For example, the image information or video information of a specific traffic intersection or road section is acquired in real time by calling a traffic monitoring camera or a global positioning system (GPS), and the image information or video information is processed to obtain the second traffic data corresponding to the image information or video information. The image information or video information can be processed by using an image feature extraction algorithm to obtain the second traffic data corresponding to the image information or video information.

[0042] It should be noted that, in addition to the above-mentioned use of traffic monitoring cameras or global positioning systems to obtain the second traffic data in real time, the second traffic data can also be obtained in real time through the monitoring screen captured by the driving recorder on the car. Furthermore, if the driving recorder and the mobile phone are directly connected via Bluetooth, the second traffic data can be directly obtained by viewing the application software on the user's mobile phone that is connected to the driving recorder.

[0043] It should be noted that the above-mentioned method of obtaining the first traffic data and the second traffic data is only for illustrative purposes. In practical applications, any other suitable method may be used to obtain the first traffic data and the second traffic data, and this application does not impose any limitation on this.

[0044] Step S102: training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow information and traffic congestion information.

[0045] Exemplarily, the extracted first traffic data and the second traffic data may be trained based on machine learning technology or data processing technology to obtain traffic patterns of traffic flow information and traffic congestion information corresponding to the first traffic data and the second traffic data.

[0046] Furthermore, a target network model corresponding to the first traffic data and the second traffic data can be obtained through machine learning technology, and based on the target network model, traffic patterns corresponding to the traffic flow information and traffic congestion information can be obtained.

[0047] In some embodiments, the first traffic data and the second traffic data are trained to obtain traffic patterns corresponding to traffic flow and congestion conditions, including: performing forward propagation calculations on the first traffic data and the second traffic data based on an initial network model to determine a prediction result after the forward propagation; performing error calculations on the prediction result and a preset result to determine a loss value corresponding to the initial network model; determining a target network model corresponding to the initial network model according to a back propagation algorithm; and determining the traffic patterns corresponding to the traffic flow and the congestion conditions according to the target network model.

[0048] Exemplarily, the initial network model includes: an input layer, a hidden layer and an output layer. Before training the first traffic data and the second traffic data, the initial network model needs to be initialized. The specific initialization process can be: using a random number generator to initialize the weights and biases in the initial network.

[0049] Exemplarily, after the initial network is initialized, the first traffic data and the second traffic data are trained, and when the first traffic data and the second traffic data are trained, firstly, forward propagation calculation is performed on the first traffic data and the second traffic data based on the initial network model to determine the prediction result after the forward propagation. The forward propagation calculation refers to the forward calculation process from the input layer to the output layer.

[0050] Specifically, at least one set of first traffic data and at least one set of second traffic data obtained are sequentially input into the input layer of the initial network model, and the first traffic data or the second traffic data entering the input layer enters the hidden layer through the neurons of the hidden layer. In the hidden layer, the first traffic data or the second traffic data is forward propagated and calculated through the activation function located in the hidden layer, and the prediction result after the forward propagation calculation is determined.

[0051] The expression corresponding to the activation function is:

[0052]

[0053] Wherein, t represents the first traffic data or the second traffic data, and H(t) represents the prediction result obtained by the activation function.

[0054] According to the activation function, the weights and biases corresponding to the initial network model can be determined.

[0055] Exemplarily, after obtaining the prediction result, the prediction result and the preset result are subjected to error calculation to determine the loss value corresponding to the initial network model. It should be noted that in the process of training the initial network model, the above loss value is obtained in the output layer.

[0056] It should be noted that the preset result is determined before the first traffic data or the second traffic data is input into the hidden layer, in order to determine whether the initial network model meets the accuracy requirements of data training.

[0057] Specifically, the method used for calculating the error between the prediction result and the preset result may be to calculate the mean square error or cross entropy between the prediction result and the preset result.

[0058] After calculating the error between the predicted result and the preset result, the loss value corresponding to the initial network model can be obtained. At this point, the forward propagation algorithm calculation is completed.

[0059] Next, the target network model corresponding to the initial network model is determined according to the back propagation algorithm, wherein the back propagation algorithm refers to adjusting the weights and biases in the initial network model using the gradient descent method according to the loss value corresponding to the initial network model so as to minimize the loss value.

[0060] In some embodiments, according to the back propagation algorithm, the target network model corresponding to the initial network model is determined, including: calculating the gradient value of each parameter in the initial network model; according to the gradient value, using the gradient descent method to update the weights and biases in the initial network model to reduce the loss value until the loss value is within a preset loss threshold range, thereby obtaining the target network model corresponding to the initial network model.

[0061] Specifically, the gradient value of the parameter is obtained by calculating the partial derivative of each parameter in the initial network model with respect to the activation function. Based on these gradient values, the weights and biases of the initial network model are updated using optimization methods such as the gradient descent method. This is to achieve the purpose of reducing the loss value. Until the loss values ​​corresponding to the first traffic data and the second traffic data corresponding to the updated initial network model are within the preset loss threshold range, the target network model corresponding to the initial network model is obtained.

[0062] By performing forward propagation calculations and backward propagation calculations on the first traffic data and the second traffic data, the loss value between the predicted result and the preset result is continuously reduced, and finally a loss value within the preset loss threshold range is obtained, thereby correspondingly obtaining a more accurate target network model, which is used for subsequent predictions to obtain more accurate traffic flow information and the traffic congestion information.

[0063] It should be noted that the above-mentioned preset loss threshold is determined at any time before the loss value is obtained. The specific value of the preset loss threshold can be reasonably set according to the specific application in actual application, and this application does not impose any restrictions on this.

[0064] After obtaining the target network model, by adding the first traffic data obtained at any time in the past and the second traffic data obtained in real time to the target network model, the traffic pattern within the period of time corresponding to the first traffic data or the second traffic data can be obtained in the output layer of the target network model.

[0065] It should be noted that, in addition to using the above-mentioned machine learning technology, other appropriate technologies such as data processing technology can also be used to train the first traffic data and the second traffic data to obtain traffic flow information and traffic congestion information corresponding to the traffic law. The specific implementation process is similar to the traffic flow information and traffic congestion information corresponding to the traffic law obtained based on the above-mentioned machine learning technology, and will not be repeated here.

[0066] Step S103: predicting the traffic flow information and the traffic congestion information within a target time period according to the traffic law.

[0067] The target time period indicates a period of time in the future, which may be one day in the future, one week in the future, or one month in the future, etc. The time range of the target time period may be reasonably set according to the specific situation, and this application does not limit this.

[0068] Among them, traffic flow information may include: pedestrian flow, vehicle flow or pedestrian and vehicle flow within the target time period, etc.; traffic congestion information includes: no congestion, general congestion, severe congestion, etc. The specific classification of traffic congestion information into no congestion, general congestion, and severe congestion can be judged based on the position and movement distance of pedestrians or vehicles within a certain period of time.

[0069] For example, after obtaining the target network model, the target network model can be added to the corresponding electronic device, and when the target traffic data is input in the input window of the application software where the target network model of the electronic device is located, the display window of the electronic device will display the traffic flow information and the traffic congestion information corresponding to the target traffic data, thereby achieving the purpose of predicting the traffic flow information and the traffic congestion information within the target time period.

[0070] Specifically, the acquired target traffic data is input into the input layer of the target network model through an electronic device, and then the target traffic data is transmitted to the hidden layer through the neurons connecting the input layer and the hidden layer. The activation function in the hidden layer performs forward propagation calculation on the target traffic data to obtain the traffic flow information and the traffic congestion information corresponding to the target traffic data.

[0071] When the traffic flow information obtained according to the target traffic data is the flow of people and vehicles, and the traffic congestion information is general congestion or severe congestion, the user can choose whether to proceed according to the original route or change the route according to the above traffic flow information and the traffic congestion information, and choose other routes with non-congested traffic congestion information. This can greatly shorten the travel time and improve the user experience.

[0072] Step S104: monitor the second traffic data in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data.

[0073] Specifically, after acquiring the second traffic data, the data changes of the second traffic data are monitored in real time, and based on the monitored second traffic data, it is determined whether the second traffic data exceeds the prescribed data range corresponding to the legal traffic behavior. When the second traffic data exceeds the prescribed data range, it can be determined that the second traffic data has the corresponding irregular traffic behavior.

[0074] In some embodiments, the second traffic data is monitored in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data, including: determining a moving target corresponding to the second traffic data; performing target tracking processing on the moving target based on a target tracking algorithm to determine the motion parameters and motion trajectory of the moving target; comparing the motion parameters with preset parameters to obtain a first comparison result; comparing the motion trajectory with a preset trajectory to obtain a second comparison result; determining the traffic irregularities corresponding to the moving target based on the first comparison result and the second comparison result, and promptly handling the traffic irregularities.

[0075] Among them, the preset parameters may be speed, distance, etc.; the preset trajectory may be one-way driving on a certain route or driving within a specified section of the road.

[0076] Exemplarily, according to the second traffic data, the image information or video information corresponding to the second traffic data is determined, and the moving target moving in real time is determined in the image information or video information. Based on positioning technologies such as GPS and Beidou, the location information of the moving target is determined.

[0077] After the moving target is determined, the moving target can be subjected to target tracking processing based on a target tracking algorithm to determine the motion parameters and motion trajectory of the moving target. The target tracking algorithm can adopt at least one of an optical flow method, a particle filter, a Mean-Shift algorithm, a CamShift algorithm, and the like.

[0078] After obtaining the motion parameters and motion trajectory of the moving target, the motion parameters are compared with the preset parameters to obtain a first comparison result; and the motion trajectory is compared with the preset trajectory to obtain a second comparison result. The first comparison result can be: yes, indicating that the motion parameters are within the range of the preset parameters, that is, the motion parameters of the moving target are within a reasonable data range, and there is no traffic irregularity; no, indicating that the motion parameters are not within the range of the preset parameters, that is, the motion parameters of the moving target are not within a reasonable data range, and there may be traffic irregularity.

[0079] Similarly, the second comparison result can be obtained as a yes or no answer. The meaning of the second comparison result corresponding to yes or no of the first comparison result is similar to the meaning of the first comparison result, which will not be repeated here.

[0080] After respectively obtaining the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target is determined according to the first comparison result and the second comparison result, and the traffic irregularity is processed in a timely manner.

[0081] In some embodiments, based on the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target is determined, and the traffic irregularity is handled in a timely manner, including: if at least one of the first comparison result or the second comparison result is not within a preset comparison range, the moving target has traffic irregularity, and the moving area corresponding to the moving target with the traffic irregularity is determined; within the moving area, the traffic irregularity of the moving target is handled in a timely manner.

[0082] For example, taking the preset parameter of speed as an example, assuming that the preset parameter of speed is: 80km / s, when the motion parameter of the car is that the driving speed exceeds 80km / s, the comparison result obtained is: No, that is, it is determined that the car has irregular traffic behavior.

[0083] For example, if a car is driving in the opposite direction on a certain section of road, when the movement trajectory of the car is compared with a preset trajectory on that section of road, if the movement trajectory of the car is inconsistent with the preset trajectory, it can be determined that the car has engaged in irregular traffic behavior.

[0084] In addition, if the first comparison result obtained by comparing the motion parameters with the preset parameters and the second comparison result obtained by comparing the motion trajectory with the preset trajectory are both negative, it means that the motion parameters of the car or other vehicle are too large and the driving route is incorrect. At this time, the moving target must have traffic irregularities. After determining the traffic irregularities, the specific location of the moving target corresponding to the traffic irregularities can be determined based on any suitable positioning system such as GPS and Beidou positioning system. This allows professional staff to determine the specific location of the moving target more quickly and handle the traffic irregularities more promptly and accurately. Avoid road paralysis or more serious traffic accidents due to untimely handling.

[0085] Step S105: determine the second traffic data corresponding to the irregular traffic behavior as third traffic data.

[0086] Specifically, after the traffic irregularity behavior is determined, the second traffic data corresponding to the traffic irregularity behavior is determined as the third traffic data.

[0087] In some embodiments, determining the second traffic data corresponding to the traffic irregular behavior as the third traffic data includes: determining the second traffic data corresponding to the traffic irregular behavior as the third traffic data based on a random forest algorithm; wherein the expression corresponding to the random forest algorithm is:

[0088]

[0089] VIM represents the degree of traffic irregularity of a certain element, i,j,represent arbitrary constants, and c represents the total number of traffic features.

[0090] Exemplarily, the judgment elements corresponding to the traffic irregularities include: speed, distance, driving direction, number of passengers, etc. For example, by sequentially adding the VIM values ​​corresponding to the speed, distance, driving direction, number of passengers, etc., the denominator in the expression corresponding to the random forest algorithm is obtained, and the speed, distance, driving direction, number of passengers are added to the numerator in the expression corresponding to the random forest algorithm, respectively, to obtain the proportion of the speed, distance, driving direction, number of passengers, etc. in the judgment elements corresponding to the entire traffic irregularities. Further, according to the proportion of each element in the judgment elements corresponding to the entire traffic irregularities, the second traffic data corresponding to each traffic irregularity can be determined as the third traffic data.

[0091] In addition, the second traffic data corresponding to the above-obtained traffic irregularity behavior may be data-marked in a data-marking manner, and the marked second traffic data may be determined as the third traffic data.

[0092] Step S106: Analyze the third traffic data to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data.

[0093] Specifically, based on data processing technology or data processing algorithm, data analysis may be performed on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data.

[0094] In some embodiments, the performing of data analysis on the third traffic data to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data includes: performing data analysis on the third traffic data based on a decision tree algorithm to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data. The loss function expression corresponding to the decision tree algorithm is:

[0095] C α (t) = C(T) + α|T|

[0096] C α(t) represents the loss function, C(T) represents the error value, α represents the parameter, and |T| represents the number of samples in the third traffic data.

[0097] Among them, the third traffic data contains multiple data types, including: road data, vehicle data, weather data, time data, etc.

[0098] Exemplarily, the risk factors may be weather factors, time factors, etc.; the regional information may be any appropriate regional information such as a road bend, an uphill road, or a downhill road; the error loss value under the corresponding data type is obtained by inputting the third traffic data into the loss function expression corresponding to the decision tree algorithm. Based on the error loss values ​​under multiple data types in the third traffic data, the risk factors and regional information of traffic accidents corresponding to the third traffic data are determined.

[0099] Step S107: Prevent the traffic accident from occurring based on the risk factors and the area information.

[0100] For example, if the risk factor is a time factor and the area information is near a school, specifically between 8 and 9 in the morning, where traffic accidents are prone to occur, then to address this issue, multiple traffic police can be arranged to be on duty near the school during this time period to direct traffic in a timely manner and reduce the occurrence of traffic accidents.

[0101] Furthermore, relevant government departments can take certain measures to reduce the number of people and vehicles nearby where parents send their children to school, arrange school buses for pick-up and drop-off, and reduce the number of vehicles near the school, especially vehicles where parents send their children to school. This can prevent traffic accidents. Alternatively, schools can arrange staggered school hours to reduce the number of vehicles and people in the same time period, so as to reduce the number of traffic accidents.

[0102] It should be noted that the above-mentioned method for preventing the occurrence of the traffic accident based on the risk factors and the regional information is only for illustrative purposes. In actual applications, other suitable ways or methods can also be used to achieve the purpose of preventing traffic accidents, and this application does not impose any restrictions on this.

[0103] The above embodiment provides a smart city traffic management method based on artificial intelligence, by acquiring the first traffic data and the second traffic data; training the first traffic data and the second traffic data to obtain the traffic law corresponding to the traffic flow information and the traffic congestion information; predicting the traffic flow information and the traffic congestion information within the target time period according to the traffic law; monitoring the second traffic data in real time so as to timely handle the traffic irregularities corresponding to the second traffic data; determining the second traffic data corresponding to the traffic irregularities as the third traffic data; performing data analysis on the third traffic data to determine the risk factors and regional information of the traffic accidents corresponding to the third traffic data; and preventing the occurrence of the traffic accidents according to the risk factors and the regional information. By training the first traffic data and the second traffic data obtained, the quality and accuracy of the data are improved, and the traffic law corresponding to the traffic flow information and the traffic congestion information is obtained. Based on the traffic law, the traffic flow information and the traffic congestion information within the target time period can be greatly conveniently predicted, which is convenient for users to choose a suitable route for travel according to their own conditions, and improves the user experience and the efficiency of traffic management. By real-time monitoring of the second traffic data, it is convenient for traffic workers to handle irregular traffic behaviors corresponding to the second traffic data more promptly and quickly, reduce traffic congestion and improve the efficiency of traffic workers in handling irregular traffic behaviors; and by determining the risk factors and regional information of traffic accidents corresponding to the third traffic data; according to the risk factors and regional information, the occurrence of the traffic accidents can be prevented. This provides more guarantees for reducing the probability of traffic accidents and people's safe travel in the future.

[0104] See also Figure 2 , Figure 2An artificial intelligence-based smart city traffic management device 200 is provided in an embodiment of the present application. The artificial intelligence-based smart city traffic management device 200 includes a data acquisition module 201, a traffic law determination module 202, an information prediction module 203, a data detection module 204, a data determination module 205, an information determination module 206, and a prevention module 207, wherein the data acquisition module 201 is used to acquire first traffic data and second traffic data; the traffic law determination module 202 is used to train the first traffic data and the second traffic data to obtain traffic laws corresponding to traffic flow information and traffic congestion information; the information prediction module 203 , used to predict the traffic flow information and the traffic congestion information within the target time period according to the traffic law; a data detection module 204, used to monitor the second traffic data in real time, so as to promptly handle the traffic irregularities corresponding to the second traffic data; a data determination module 205, used to determine the second traffic data corresponding to the traffic irregularities as third traffic data; an information determination module 206, used to perform data analysis on the third traffic data, and determine the risk factors and regional information of traffic accidents corresponding to the third traffic data; a prevention module 207, used to prevent the occurrence of the traffic accident according to the risk factors and the regional information.

[0105] In some implementations, the traffic law determination module 202 processes, during the process of training the first traffic data and the second traffic data to obtain traffic laws corresponding to traffic flow and congestion conditions;

[0106] Performing forward propagation calculation on the first traffic data and the second traffic data based on the initial network model to determine a prediction result after the forward propagation;

[0107] Performing error calculation on the predicted result and the preset result to determine the loss value corresponding to the initial network model;

[0108] Determine the target network model corresponding to the initial network model according to the back propagation algorithm;

[0109] The traffic rules corresponding to the traffic flow and the congestion situation are determined according to the target network model.

[0110] In some implementations, the traffic law determination module 202 processes, in the process of determining the target network model corresponding to the initial network model according to the back propagation algorithm;

[0111] Calculating the gradient value of each parameter in the initial network model;

[0112] According to the gradient value, the gradient descent method is used to update the weights and biases in the initial network model to reduce the loss value until the loss value is within a preset loss threshold range, thereby obtaining a target network model corresponding to the initial network model.

[0113] In some embodiments, the information prediction module 203 processes;

[0114] The traffic flow information and the traffic congestion information within a target time period are predicted according to the traffic law.

[0115] In some implementations, the data detection module 204 processes, in the process of real-time monitoring the second traffic data so as to timely process the traffic irregularity corresponding to the second traffic data;

[0116] determining a moving target corresponding to the second traffic data;

[0117] Based on the target tracking algorithm, target tracking processing is performed on the moving target to determine the motion parameters and motion trajectory of the moving target;

[0118] Comparing the motion parameter with a preset parameter to obtain a first comparison result;

[0119] Comparing the motion trajectory with a preset trajectory to obtain a second comparison result;

[0120] According to the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target is determined, and the traffic irregularity is handled in a timely manner.

[0121] In some implementations, the data detection module 204 processes, in the process of determining the traffic irregularity corresponding to the moving target according to the first comparison result and the second comparison result, and processing the traffic irregularity in a timely manner;

[0122] If at least one of the first comparison result or the second comparison result is not within the preset comparison range, the moving target has traffic irregularities, and a moving area corresponding to the moving target having the traffic irregularities is determined;

[0123] In the movement area, the traffic irregularities of the moving target are promptly handled.

[0124] In some implementations, the data determination module 205 processes, during the process of determining the second traffic data corresponding to the traffic irregularity as the third traffic data:

[0125] Based on a random forest algorithm, determining the second traffic data corresponding to the irregular traffic behavior as third traffic data;

[0126] Among them, the expression corresponding to the random forest algorithm is:

[0127]

[0128] VIM represents the degree of traffic irregularity of a certain element, i,j,represent arbitrary constants, and c represents the total number of traffic features.

[0129] In some implementations, the information determination module 206, in the process of performing data analysis on the third traffic data to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data, includes:

[0130] Based on a decision tree algorithm, data analysis is performed on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data;

[0131] Among them, the loss function expression corresponding to the decision tree algorithm is:

[0132] C α (t) = C(T) + α|T|

[0133] C α (t) represents the loss function, C(T) represents the error value, α represents the parameter, and |T| represents the number of samples in the third traffic data.

[0134] In some embodiments, the prevention module 207, processes;

[0135] Prevent the traffic accident from occurring based on the risk factors and the area information.

[0136] In some embodiments, the artificial intelligence-based smart city traffic management device 200 can be applied to electronic devices.

[0137] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the artificial intelligence-based smart city traffic management device 200 described above can refer to the corresponding process in the aforementioned artificial intelligence-based smart city traffic management method embodiment, and will not be repeated here.

[0138] See also Figure 3 , Figure 3 A schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0139] like Figure 3As shown, the electronic device 300 includes a processor 301 and a memory 302, and the processor 301 and the memory 302 are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.

[0140] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire electronic device. The processor 301 can be a central processing unit (CPU), and the processor 301 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0141] Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.

[0142] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present invention, and does not constitute a limitation on the terminal device to which the embodiment of the present invention is applied. The specific server may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0143] The processor is used to run a computer program stored in a memory, and implement any one of the artificial intelligence-based smart city traffic management methods provided by an embodiment of the present invention when executing the computer program.

[0144] In one embodiment, the processor is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:

[0145] Acquire first traffic data and second traffic data;

[0146] Training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow information and traffic congestion information;

[0147] According to the traffic law, predict the traffic flow information and the traffic congestion information within the target time period;

[0148] monitoring the second traffic data in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data;

[0149] determining the second traffic data corresponding to the irregular traffic behavior as third traffic data;

[0150] Performing data analysis on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data;

[0151] Prevent the traffic accident from occurring based on the risk factors and the area information.

[0152] In some implementations, the processor 301 performs, during the process of training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow and congestion conditions;

[0153] Performing forward propagation calculation on the first traffic data and the second traffic data based on the initial network model to determine a prediction result after the forward propagation;

[0154] Performing error calculation on the predicted result and the preset result to determine the loss value corresponding to the initial network model;

[0155] Determine the target network model corresponding to the initial network model according to the back propagation algorithm;

[0156] The traffic rules corresponding to the traffic flow and the congestion situation are determined according to the target network model.

[0157] In some implementations, the processor 301 performs, during a back propagation algorithm to determine a target network model corresponding to the initial network model;

[0158] Calculating the gradient value of each parameter in the initial network model;

[0159] According to the gradient value, the gradient descent method is used to update the weights and biases in the initial network model to reduce the loss value until the loss value is within a preset loss threshold range, thereby obtaining a target network model corresponding to the initial network model.

[0160] In some implementations, the processor 301 performs, during real-time monitoring of the second traffic data so as to timely process the traffic irregularity corresponding to the second traffic data;

[0161] determining a moving target corresponding to the second traffic data;

[0162] Based on the target tracking algorithm, target tracking processing is performed on the moving target to determine the motion parameters and motion trajectory of the moving target;

[0163] Comparing the motion parameter with a preset parameter to obtain a first comparison result;

[0164] Comparing the motion trajectory with a preset trajectory to obtain a second comparison result;

[0165] According to the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target is determined, and the traffic irregularity is handled in a timely manner.

[0166] In some implementations, the processor 301, in the process of determining the traffic irregularity corresponding to the moving target according to the first comparison result and the second comparison result, and processing the traffic irregularity in a timely manner, executes;

[0167] If at least one of the first comparison result or the second comparison result is not within the preset comparison range, the moving target has traffic irregularities, and a moving area corresponding to the moving target having the traffic irregularities is determined;

[0168] In the movement area, the traffic irregularities of the moving target are promptly handled.

[0169] In some implementations, when the processor 301 determines the second traffic data corresponding to the traffic irregular behavior as third traffic data, the processor 301 executes:

[0170] Based on a random forest algorithm, determining the second traffic data corresponding to the irregular traffic behavior as third traffic data;

[0171] Among them, the expression corresponding to the random forest algorithm is:

[0172]

[0173] VIM represents the degree of traffic irregularity of a certain element, i,j,represent arbitrary constants, and c represents the total number of traffic features.

[0174] In some implementations, the processor 301 performs, during the process of performing data analysis on the third traffic data to determine the risk factors and area information of traffic accidents corresponding to the third traffic data;

[0175] Based on a decision tree algorithm, data analysis is performed on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data;

[0176] Among them, the loss function expression corresponding to the decision tree algorithm is:

[0177] C α (t) = C(T) + α|T|

[0178] C α (t) represents the loss function, C(T) represents the error value, α represents the parameter, and |T| represents the number of samples in the third traffic data.

[0179] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the electronic device described above can refer to the corresponding process in the aforementioned embodiment of the smart city traffic management method based on artificial intelligence, and will not be repeated here.

[0180] An embodiment of the present invention also provides a computer-readable storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any step of the smart city traffic management method based on artificial intelligence provided in the description of the embodiment of the present invention.

[0181] The storage medium may be an internal storage unit of the terminal device described in the foregoing embodiment, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc., equipped on the terminal device.

[0182] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0183] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0184] The serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A smart city traffic management method based on artificial intelligence, characterized in that: include: Acquire first traffic data and second traffic data; Training the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow information and traffic congestion information; According to the traffic law, predict the traffic flow information and the traffic congestion information within the target time period; monitoring the second traffic data in real time so as to promptly handle the traffic irregularities corresponding to the second traffic data; determining the second traffic data corresponding to the irregular traffic behavior as third traffic data; Performing data analysis on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data; Prevent the traffic accident from occurring based on the risk factors and the area information.

2. The method for smart city traffic management based on artificial intelligence according to claim 1 is characterized in that: The training of the first traffic data and the second traffic data to obtain traffic rules corresponding to traffic flow and congestion conditions includes: Performing forward propagation calculation on the first traffic data and the second traffic data based on the initial network model to determine a prediction result after the forward propagation; Performing error calculation on the predicted result and the preset result to determine the loss value corresponding to the initial network model; Determine the target network model corresponding to the initial network model according to the back propagation algorithm; The traffic rules corresponding to the traffic flow and the congestion situation are determined according to the target network model.

3. The smart city traffic management method based on artificial intelligence according to claim 2 is characterized in that: Determining the target network model corresponding to the initial network model according to the back propagation algorithm includes: Calculating the gradient value of each parameter in the initial network model; According to the gradient value, the gradient descent method is used to update the weights and biases in the initial network model to reduce the loss value until the loss value is within a preset loss threshold range, thereby obtaining a target network model corresponding to the initial network model.

4. The method for smart city traffic management based on artificial intelligence according to claim 1 is characterized in that: The real-time monitoring of the second traffic data so as to timely handle the traffic irregularity corresponding to the second traffic data includes: determining a moving target corresponding to the second traffic data; Based on the target tracking algorithm, target tracking processing is performed on the moving target to determine the motion parameters and motion trajectory of the moving target; Comparing the motion parameter with a preset parameter to obtain a first comparison result; Comparing the motion trajectory with a preset trajectory to obtain a second comparison result; According to the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target is determined, and the traffic irregularity is handled in a timely manner.

5. The method for smart city traffic management based on artificial intelligence according to claim 4 is characterized in that: The determining, based on the first comparison result and the second comparison result, the traffic irregularity corresponding to the moving target and promptly handling the traffic irregularity includes: If at least one of the first comparison result or the second comparison result is not within the preset comparison range, the moving target has traffic irregularities, and a moving area corresponding to the moving target having the traffic irregularities is determined; In the movement area, the traffic irregularities of the moving target are promptly handled.

6. The method for smart city traffic management based on artificial intelligence according to claim 1 is characterized in that: The determining the second traffic data corresponding to the irregular traffic behavior as third traffic data includes: Based on a random forest algorithm, determining the second traffic data corresponding to the irregular traffic behavior as third traffic data; Among them, the expression corresponding to the random forest algorithm is: VIM represents the degree of traffic irregularity of a certain element, i,j,represent arbitrary constants, and c represents the total number of traffic features.

7. The method for smart city traffic management based on artificial intelligence according to claim 1 is characterized in that: The performing data analysis on the third traffic data to determine the risk factors and regional information of traffic accidents corresponding to the third traffic data includes: Based on a decision tree algorithm, data analysis is performed on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data; Among them, the loss function expression corresponding to the decision tree algorithm is: C α (t)=C(T)+α|T| C α (t) represents the loss function, C(T) represents the error value, α represents the parameter, and |T| represents the number of samples in the third traffic data.

8. A smart city traffic management device based on artificial intelligence, characterized in that: include: A data acquisition module, used to acquire the first traffic data and the second traffic data; A traffic law determination module, used for training the first traffic data and the second traffic data to obtain traffic laws corresponding to traffic flow information and traffic congestion information; An information prediction module, used to predict the traffic flow information and the traffic congestion information within a target time period according to the traffic law; A data detection module, used for monitoring the second traffic data in real time, so as to promptly process the traffic irregularities corresponding to the second traffic data; a data determination module, configured to determine the second traffic data corresponding to the irregular traffic behavior as third traffic data; an information determination module, configured to perform data analysis on the third traffic data to determine risk factors and regional information of traffic accidents corresponding to the third traffic data; A prevention module is used to prevent the occurrence of the traffic accident based on the risk factors and the area information.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the smart city traffic management method based on artificial intelligence as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor enables the processor to implement the smart city traffic management method based on artificial intelligence as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Traffic behavior analysis system

    CN107424412A

  • Urban traffic flow prediction method and system and electronic equipment

    CN109492814A

  • Road traffic accident risk factor analysis method based on random forest

    CN110276370A

  • Traffic risk prediction method and device, electronic equipment and storage medium

    CN116386316A

  • Intelligent traffic integrated management system based on traffic big data

    CN117196153A

Cited By

  • Smart city traffic management method based on big data

    CN120014829A