A method for real-time prediction of changes in driver's vehicle behavior patterns
The generalized likelihood ratio model is used to analyze the driver's car-using behavior pattern, combined with time series and spatial data, which solves the problem of the inability to effectively consider personal attributes and external factors in the existing technology, and improves the accuracy and accuracy of the prediction of car-using behavior patterns. efficiency.
Patent Information
- Application Number
- CN202111623992.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing traffic behavior pattern prediction methods cannot effectively consider an individual's personal attributes and external factors, resulting in low prediction accuracy. It is also difficult to process multiple individuals' vehicle behavior patterns at the same time, and cannot meet the needs of customized travel services.
Using the generalized likelihood ratio model combined with the adaptive sequence segmentation framework of the generalized likelihood ratio piecewise stationary time series, the driver's historical data is obtained and preprocessed in real time, the grid index and time series data are divided, and the dissimilarity value is calculated to Analyze changes in vehicle usage patterns, taking into account time dependence and heterogeneity in individual attributes.
It improves the accuracy of prediction of personal car-use behavior patterns, can analyze the car-use behavior patterns of multiple individuals at the same time, and considers the impact of external factors such as weather and holidays, improving the efficiency and accuracy of inference.
Smart Images

Figure CN114398530B
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine learning technology, and in particular to a method for real-time prediction of changes in driver's vehicle behavior patterns. Background Art
[0002] With the rise of customized travel modes such as mobility as a service, shared mobility and self-driving cars, urban transportation is undergoing disruptive changes. The emergence of these new modes plays an important role in solving problems such as parking shortages, reducing road congestion and resource waste. For these emerging intelligent transportation modes, the ability to predict personal car usage patterns is crucial for personalized traveler information, target demand management and dynamic system operation. Only by understanding people's daily car usage behavior patterns can we provide strong support for customized travel services.
[0003] In the early years, people needed to predict personal travel behavior in traffic planning. Some researchers first turned to the estimation of personal attitudes. Later, this method was replaced by declarative preference and declarative choice methods. However, these prediction methods lacked a theoretical basis. In addition, this also made it impossible to evaluate the predictive effectiveness of these methods. Later, some researchers inferred people’s private car usage patterns from the perspective of social psychology. Later, some scholars used interactive interview programs to predict car use for different types of travel, but these methods required a lot of manpower to investigate and obtain data.
[0004] With the development of science and technology, many people have begun to use mobile phone data, smart card data, and GPS data to obtain personal whereabouts and use them for traffic prediction. At present, traditional statistical models commonly used in traffic pattern inference research, such as time series model ARIMA or machine learning algorithms such as Bayesian network, support vector machine and artificial neural network, can only take into account time dependence at most when inferring, but cannot take into account individual personal attributes, because people with different personal attributes, such as people of different occupations and ages, have certain differences in car usage patterns. In addition, people's previous models were unable to train the car usage behavior of multiple individuals at the same time, and these single personal inferences could not adapt to the needs of large-scale customized travel. The efficiency of inference can only be improved when the traffic behavior patterns of multiple people can be inferred at the same time. Finally, the models used by people in the past also failed to take into account the influence of external factors such as weather and holidays.
[0005] Therefore, the problem of predicting personal car use behavior patterns remains challenging because travel behavior involves multiple dimensions (most notably time and space), exhibits time dependence of individual travel behavior, and varies between individuals. In addition, external factors (such as air quality, weather conditions, and holiday policies) also have a certain impact on personal car use behavior and travel time, making the accuracy of personal car use behavior pattern prediction low. Summary of the invention
[0006] Based on this, it is necessary to provide a method for real-time prediction of changes in driver's vehicle behavior patterns that can improve the accuracy of personal vehicle behavior pattern prediction in response to the above technical problems.
[0007] A method for real-time prediction of changes in driver's vehicle use behavior pattern, the method comprising:
[0008] Step 1: Acquire and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips;
[0009] Step 2: After the historical data is regularized, the travel map is divided into grids and each grid in the grid is indexed as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files;
[0010] Step three: input the time series data into the pre-built generalized likelihood ratio model, analyze the vehicle usage pattern of the current cycle, and obtain the vehicle usage pattern change information of the driver in the current cycle.
[0011] The generalized likelihood ratio model is built on an adaptive sequence segmentation framework structure of a generalized likelihood ratio segmented stationary time series.
[0012] In one embodiment, in the generalized likelihood ratio model:
[0013] The statistical time series data is represented as X={x 1 , x 2 , x 3 ……x i}, where x i Represents the data of vehicle usage in the i-th time period, with x i:j To define the vehicle usage data from timestamp i to timestamp j;
[0014] For a time t, a time window before t is defined as a reference window with a length of r, and a time window after t is defined as a test window with a length of s;
[0015] By calculating the reference data x in the reference window t-r-1:t-1 and test data x in the test window t:t+s The dissimilarity value between them, and the dissimilarity threshold and the dissimilarity threshold Compare and determine whether there is a change at time point t that satisfies H 0 Then the time point changes, satisfying H 1 Then the time point does not change, which can be expressed as:
[0016]
[0017] Among them, F(·,·) is a dissimilarity function, is a dissimilarity threshold used to adjust the balance between detection sensitivity and robustness. 0 represents the null hypothesis, H 1 represents the alternative hypothesis;
[0018] As new observations arrive, time t gradually moves forward, and both the reference window and the test window slide with time t; the length s of the test window specifies the detection delay, that is, a change occurring at time t can only be detected at t+s.
[0019] In one embodiment, the step of inputting the time series data into the pre-built generalized likelihood ratio model, analyzing the vehicle usage pattern of the current cycle, and obtaining the vehicle usage pattern change information of the driver in the current cycle includes:
[0020] Obtaining the preset reference window length, detection delay length, and dissimilarity threshold;
[0021] In the time series data, the reference window is slid to a position corresponding to the current cycle according to the length of the reference window, and data in the corresponding position of the reference window is obtained as reference data. The corresponding position of the current cycle of the test window is determined according to the length of the detection delay, and data in the corresponding position of the test window is obtained as test data.
[0022] Probability distribution calculations are performed on the reference data and the test data respectively to obtain probability distribution results of the reference data and probability distribution results of the test data.
[0023] The probability distribution result of the reference data and the probability distribution result of the test data are subjected to dissimilarity calculation to obtain a dissimilarity value, and the dissimilarity value is compared with a dissimilarity threshold to determine whether the vehicle usage pattern in the current cycle has changed.
[0024] In one embodiment, the method includes:
[0025] Continue to obtain and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips;
[0026] After the historical data is regularized, the travel map is divided into grids and each grid in the grid is given an index as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files;
[0027] The time series data is input into the pre-built generalized likelihood ratio model, the vehicle usage pattern of the next cycle is analyzed, and the vehicle usage pattern change information of the driver in the next cycle is obtained.
[0028] The above method for real-time prediction of changes in driver's vehicle use behavior pattern is to obtain the driver's personal travel history data in real time and pre-process it, wherein the historical data is the driver's vehicle use time and travel spatial location in previous trips; after the historical data is regularized, the travel map is divided into grids and each grid in the grid is given an index as spatial data, the time series data is divided by day, and the personal vehicle use time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files; the time series data is input into the pre-built generalized likelihood ratio model, the vehicle use pattern of the current cycle is analyzed, and the vehicle use pattern change information of the driver in the current cycle is obtained. The calculation is performed in the form of probability distribution, and the time dependence and the heterogeneity of personal attributes of multiple individuals' private car use behaviors are considered when inferring. By using this method, people can not only meet the analysis of multiple individual driving behavior patterns, but also effectively improve the accuracy of personal car use behavior pattern inference. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The figure is a flow chart of a method for real-time prediction of changes in a driver's vehicle-using behavior pattern in one embodiment. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0031] In one embodiment, Figure 1 As shown, a method for real-time prediction of changes in driver's vehicle use behavior pattern is provided, and the method is applied to a server as an example for explanation, including the following steps:
[0032] Step 1: Acquire and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips.
[0033] Step 2: After the historical data is regularized, the travel map is divided into grids and each grid in the grid is indexed as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data and store it in hdf5 data files.
[0034] The time series data is shown in Table 1 below. Each value in the spatial index in Table 1 represents a region. The time index indicates the time the vehicle has traveled in a certain region. The value in the table indicates the number of times the vehicle appears in the region at the corresponding timestamp.
[0035] Table 1. Time series data table
[0036]
[0037] Step three: input the time series data into the pre-built generalized likelihood ratio model, analyze the vehicle usage pattern of the current cycle, and obtain the vehicle usage pattern change information of the driver in the current cycle.
[0038] Among them, the generalized likelihood ratio model is based on the adaptive sequence segmentation framework structure of the generalized likelihood ratio piecewise stationary time series. The generalized likelihood ratio model can not only train multiple individuals at the same time and take into account the time dependence of individuals, but also take into account the differences in car usage behavior patterns of multiple individuals due to different personal attributes. In addition, the model can also consider external factors, such as holidays and weather.
[0039] The above-mentioned method for real-time prediction of changes in driver's vehicle use behavior pattern is to obtain the driver's personal travel history data in real time and pre-process it, wherein the historical data is the driver's vehicle use time and travel spatial location in previous trips; after the historical data is regularized, the travel map is divided into grids and each grid in the grid is given an index as spatial data, the time series data is divided by day, and the personal vehicle use time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files; the time series data is input into the pre-built generalized likelihood ratio model, the vehicle use pattern of the current cycle is analyzed, and the vehicle use pattern change information of the driver in the current cycle is obtained. The calculation is performed in the form of probability distribution, and the time dependence and the heterogeneity of personal attributes of multiple individuals' private car use behaviors are considered when inferring. By using this method, people can not only meet the inference of multiple individual driving behavior patterns, but also effectively improve the accuracy of personal car use behavior pattern inference.
[0040] Using private car GPS trajectory data, a method for real-time prediction of changes in driver's car use behavior patterns is proposed to infer individual private car use behavior patterns. The travel behavior of personal data is converted into probability distribution representation, and the probability distribution is used to show the car use behavior of different individuals in a certain time period. Then, the generalized likelihood ratio is calculated by comparing the probability distribution of the past time period with the probability distribution of the current time period to analyze whether the current pattern has changed. It can not only take into account the time dependence of personal car use, but also the differences in car use behavior patterns of multiple individuals due to different personal attributes. This method shows the potential for inferring a certain travel behavior pattern, enriches the traditional inference method, and provides a new idea for traffic behavior modeling.
[0041] In one embodiment, in the generalized likelihood ratio model: the statistical time series data is represented as X={x 1 , x 2 , x 3 ……x i}, where x i Represents the data of vehicle usage in the i-th time period, with x i:j To define the vehicle usage data from timestamp i to timestamp j; for a time t, a time window before t is defined as a reference window with a length of r, and a time window after t is defined as a test window with a length of s; by calculating the reference data x in the reference window t-r-1:t-1 and test data x in the test window t:t+s The dissimilarity value between them, and the dissimilarity threshold and the dissimilarity threshold Compare and determine whether there is a change at time point t that satisfies H 0Then the time point changes, satisfying H 1 Then the time point does not change, which can be expressed as:
[0042]
[0043] Among them, F(·,·) is a dissimilarity function, is a dissimilarity threshold used to adjust the balance between detection sensitivity and robustness. 0 represents the null hypothesis, H 1 represents the alternative hypothesis;
[0044] As new observations arrive, time t gradually moves forward, and both the reference window and the test window slide with time t; the length s of the test window specifies the detection delay, that is, a change occurring at time t can only be detected at t+s.
[0045] The length s of the test window and the length r of the reference window may be the same or different and may be set according to actual conditions. The dissimilarity threshold may be set according to past experience, such as 0.5, 0.6, etc.
[0046] In one embodiment, the step of inputting the time series data into the pre-built generalized likelihood ratio model, analyzing the vehicle usage pattern of the current cycle, and obtaining the vehicle usage pattern change information of the driver in the current cycle includes:
[0047] Obtain the length of a preset reference window, the length of a detection delay, and a dissimilarity threshold; in the time series data, slide the reference window to a position corresponding to the current period according to the length of the reference window, obtain the data in the corresponding position of the reference window as reference data, determine the corresponding position of the current period of the test window according to the length of the detection delay, obtain the data in the corresponding position of the test window as test data, perform probability distribution calculations on the reference data and the test data, respectively, and obtain the probability distribution results of the reference data and the test data.
[0048] Among them, the length of the reference window can be preset to 5, the length of the detection delay can be preset to 2, and the difference threshold can be preset to 1.
[0049] The probability distribution result of the reference data and the probability distribution result of the test data are subjected to dissimilarity calculation to obtain a dissimilarity value, and the dissimilarity value is compared with a dissimilarity threshold to determine whether the vehicle usage pattern in the current cycle has changed.
[0050] In one embodiment, the method includes:
[0051] Continue to obtain and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips;
[0052] After the historical data is regularized, the travel map is divided into grids and each grid in the grid is given an index as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files;
[0053] The time series data is input into the pre-built generalized likelihood ratio model, the vehicle usage pattern of the next cycle is analyzed, and the vehicle usage pattern change information of the driver in the next cycle is obtained.
[0054] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0055] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0056] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for real-time prediction of changes in driver's vehicle behavior pattern, characterized in that: The method comprises: Step 1: Acquire and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips; Step 2: After the historical data is regularized, the travel map is divided into grids and each grid in the grid is indexed as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files; Step 3: input the time series data into the pre-built generalized likelihood ratio model, analyze the vehicle usage pattern of the current cycle, and obtain the vehicle usage pattern change information of the driver in the current cycle; The generalized likelihood ratio model is based on an adaptive sequence segmentation framework structure of a generalized likelihood ratio piecewise stationary time series; In the generalized likelihood ratio model: The statistical time series data is represented as X = {x1, x2, x3...x i }, where x i Represents the data of vehicle usage in the i-th time period, with x i:j To define the vehicle usage data from timestamp i to timestamp j; For a time t, a time window before t is defined as a reference window with a length of r, and a time window after t is defined as a test window with a length of s; By calculating the reference data x in the reference window t-r-1:t-1 and test data x in the test window t:t+s The dissimilarity value between them is calculated, and the dissimilarity threshold is compared with the dissimilarity threshold ζ to determine whether there is a change at time point t. If H0 is satisfied, the time point changes, and if H1 is satisfied, the time point does not change, which is expressed as: Among them, F(·,·) is a dissimilarity function, ζ is a dissimilarity threshold used to adjust the balance between detection sensitivity and robustness, H0 represents the null hypothesis, and H1 represents the alternative hypothesis; As new observations arrive, time t gradually moves forward, and both the reference window and the test window slide with time t; the length s of the test window specifies the detection delay, that is, a change occurring at time t can only be detected at t+s.
2. The method for real-time prediction of changes in driver's vehicle use behavior pattern according to claim 1, characterized in that: The step of inputting the time series data into the pre-built generalized likelihood ratio model, analyzing the vehicle usage pattern of the current cycle, and obtaining the vehicle usage pattern change information of the driver in the current cycle includes: Obtaining the preset reference window length, detection delay length, and dissimilarity threshold; In the time series data, the reference window is slid to a position corresponding to the current cycle according to the length of the reference window, and data in the corresponding position of the reference window is obtained as reference data. The corresponding position of the current cycle of the test window is determined according to the length of the detection delay, and data in the corresponding position of the test window is obtained as test data. Performing probability distribution calculation on the reference data and the test data respectively to obtain a probability distribution result of the reference data and a probability distribution result of the test data; The probability distribution result of the reference data and the probability distribution result of the test data are subjected to dissimilarity calculation to obtain a dissimilarity value, and the dissimilarity value is compared with a dissimilarity threshold to determine whether the vehicle usage pattern in the current cycle has changed.
3. The method for real-time prediction of changes in driver's vehicle use behavior pattern according to claim 2, characterized in that: The method may include: Continue to obtain and pre-process the driver's personal travel history data in real time, wherein the history data is the driver's vehicle usage time and travel spatial location in previous trips; After the historical data is regularized, the travel map is divided into grids and each grid in the grid is given an index as spatial data. The time series data is divided by day, and the personal vehicle usage time is counted daily and used as time data to obtain statistical time series data, which is stored in hdf5 data files; The time series data is input into the pre-built generalized likelihood ratio model, the vehicle usage pattern of the next cycle is analyzed, and the vehicle usage pattern change information of the driver in the next cycle is obtained.
