A vehicle driving route deviation warning method, device, equipment and medium

By receiving and processing the GPS data of the school bus in real time, it can detect the deviation of its driving route and provide an early warning function, which solves the problems of difficulty in monitoring the school bus driving route and insufficient automatic alarm, and improves the safety of the school bus.

CN118700937BActive Publication Date: 2024-10-25QINGDAO CHENGYUN DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411194923.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-10-25
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

The large number and frequency of school buses makes it difficult to tell whether a school bus has deviated from the driving route, which requires a lot of manpower and material resources. It is difficult to achieve real-time supervision and automatic alarm with existing technology.

Method used

By receiving the driving request sent by the driver, it receives the GPS point location data of the target vehicle in real time, performs noise filtering, abnormal data removal and redundancy elimination processing, detects whether the GPS point is within the electronic fence of the preset driving route, and determines the actual driving The direction is consistent with the specified route direction. If it deviates, an early warning will be issued.

Benefits of technology

It realizes real-time monitoring and deviation warning of school bus driving routes, improves vehicle safety, reduces manpower and material investment, and improves school bus accident prevention capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118700937B_ABST
    Figure CN118700937B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and in particular to an early warning method, device, equipment and medium for vehicle driving route deviation. The present application receives a driving request for the target vehicle to start a journey sent by the driver, and receives the position data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; pre-processes the position data of the GPS point of the target vehicle received in real time to obtain the position data of the pre-processed GPS point; for any processed GPS point, detects whether the GPS point is within the electronic fence of the preset driving route, and detects whether the actual driving direction of the target vehicle is consistent with the specified route direction; determines whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and issues an early warning if it has. In this way, the safety of the vehicle can be improved by tracking and monitoring the target vehicle and issuing an early warning when the target vehicle deviates from the driving route.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a vehicle driving route deviation warning method, device, equipment and medium. Background Art

[0002] With the popularity of school buses in recent years, the driving safety of school buses has attracted more and more attention from the public. More and more school buses are equipped with global positioning systems (GPS) or Beidou positioning to track the location of school buses in real time. In addition, it is also necessary to monitor whether the school buses deviate from the prescribed driving route.

[0003] However, there are many school buses and many shifts, and it is quite difficult to distinguish whether a school bus has deviated from the route, which requires a lot of manpower and material resources. If modern detection and communication technology is combined with school bus management to realize a system that monitors whether the school bus has deviated from the route in real time and can automatically alarm, it will play a positive role in reducing the occurrence of school bus accidents.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of this, the embodiments of the present application at least provide a vehicle driving route deviation warning method, device, equipment and medium, which can improve the safety of the vehicle by tracking and monitoring the target vehicle and issuing a warning when the target vehicle deviates from the driving route.

[0006] This application mainly includes the following aspects:

[0007] In a first aspect, an embodiment of the present application provides a vehicle driving route deviation warning method, which is applied to a service end of a vehicle deviation warning system, wherein the vehicle deviation warning system includes a user end, a driver end, and a dispatch center end, and the vehicle driving route deviation warning method includes:

[0008] Receive a driving request for a target vehicle to start a trip sent by a driver, and receive the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; the driving request includes driver information and shift information, and the shift information is bound to a preset driving route;

[0009] Preprocessing the real-time received GPS point location data of the target vehicle to obtain preprocessed GPS point location data; the preprocessing includes noise filtering, abnormal data elimination, and redundancy elimination;

[0010] For any of the processed GPS points, detect whether the GPS point is within the electronic fence of the preset driving route, and detect whether the actual driving direction of the target vehicle is consistent with the prescribed route direction; the actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point;

[0011] Based on the detection results of a preset number of GPS points, it is determined whether the target vehicle has deviated from the driving route, and an early warning is issued if it has occurred.

[0012] In a second aspect, an embodiment of the present application further provides a service end applied to a vehicle deviation warning system, wherein the vehicle deviation warning system includes a user end, a driver end, and a dispatch center end, and the vehicle driving route deviation warning device includes:

[0013] A receiving module, used to receive a driving request sent by a driver for a target vehicle to start a trip, and to receive the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; the driving request includes driver information and shift information, and the shift information is bound to a preset driving route;

[0014] A preprocessing module is used to preprocess the position data of the GPS point of the target vehicle received in real time to obtain the preprocessed position data of the GPS point; the preprocessing includes noise filtering, abnormal data elimination, and redundancy elimination;

[0015] A detection module is used to detect, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route, and to detect whether the actual driving direction of the target vehicle is consistent with the prescribed route direction; the actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point;

[0016] The determination module is used to determine whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and to issue an early warning if it has deviated.

[0017] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the vehicle driving route deviation warning method described in the first aspect above.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program executes the steps of the vehicle driving route deviation warning method described in the first aspect or the first aspect.

[0019] The embodiments of the present application provide an early warning method, device, equipment and medium for vehicle driving route deviation. The present application receives a driving request for the target vehicle to start a journey sent by the driver, and receives the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; pre-processes the location data of the GPS points of the target vehicle received in real time to obtain the location data of the pre-processed GPS points; for any processed GPS point, detects whether the GPS point is within the electronic fence of the preset driving route, and detects whether the actual driving direction of the target vehicle is consistent with the specified route direction; determines whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and issues an early warning if it has. In this way, the safety of the vehicle can be improved by tracking and monitoring the target vehicle and issuing an early warning when the target vehicle deviates from the driving route.

[0020] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A flow chart showing a method for early warning of vehicle driving route deviation provided in an embodiment of the present application is shown;

[0023] Figure 2 One of the functional module diagrams of a vehicle driving route deviation warning device provided in an embodiment of the present application is shown;

[0024] Figure 3 A second functional module diagram of a vehicle driving route deviation warning device provided in an embodiment of the present application is shown;

[0025] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0027] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0028] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are provided in combination with the specific application scenario of "vehicle monitoring and tracking". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0029] The following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario requiring vehicle monitoring and tracking. The embodiments of the present application are not limited to specific application scenarios. Any scheme using the vehicle driving route deviation warning method and device provided by the embodiments of the present application is within the scope of protection of the present application.

[0030] It is worth noting that before this application was filed, with the popularity of school buses in recent years, the driving safety of school buses has attracted more and more attention from the public. More and more school buses are equipped with global positioning systems (GPS) or Beidou positioning to track the location of school buses in real time. In addition, it is also necessary to monitor whether the school buses deviate from the prescribed driving routes. However, there are many school buses and many shifts, and it is quite difficult to distinguish whether a school bus has deviated from the driving route, which requires a lot of manpower and material resources.

[0031] In response to the above problems, the embodiment of the present application receives a driving request for the target vehicle to start a trip sent by the driver, and receives the position data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; pre-processes the position data of the GPS point of the target vehicle received in real time to obtain the position data of the pre-processed GPS point; for any processed GPS point, detects whether the GPS point is within the electronic fence of the preset driving route, and detects whether the actual driving direction of the target vehicle is consistent with the specified route direction; based on the detection results of a preset number of GPS points, determines whether the target vehicle has deviated from the driving route, and issues an early warning if it has. In this way, the safety of the vehicle can be improved by tracking and monitoring the target vehicle and issuing an early warning when the target vehicle deviates from the driving route.

[0032] To facilitate the understanding of the present application, the technical solution provided by the present application is described in detail below in conjunction with specific embodiments.

[0033] Figure 1 This is a flow chart of a vehicle driving route deviation warning method provided in an embodiment of the present application. Figure 1 As shown, the vehicle driving route deviation warning method provided in the embodiment of the present application is applied to the service end of the vehicle deviation warning system, the vehicle deviation warning system includes a user end, a driver end and a dispatch center end, and the vehicle driving route deviation warning method includes the following steps:

[0034] S101: receiving a travel request for a target vehicle to start a trip sent by a driver, and receiving position data of each GPS point of the target vehicle in real time during the travel of the target vehicle.

[0035] The driving request includes driver information and shift information, and the shift information is bound to a preset driving route.

[0036] It should be noted that the vehicle deviation warning system provided in this application is intended to ensure the traffic safety of students going to and from school through a series of intelligent functions. The smart school bus (target vehicle) is responsible for picking up and dropping off students to and from school along the predetermined routes and stops every day. Among them, the core functions of the vehicle deviation warning system include:

[0037] Fixed route and station management: Smart school buses follow fixed routes (preset driving routes) and stops to ensure service stability and predictability.

[0038] Real-time location tracking: The system provides real-time location information of the vehicle, allowing parents to know the location of their children at any time.

[0039] License plate number recognition: By recording and displaying license plate numbers, parents can identify the specific vehicle that picks up their children, increasing the transparency of the pick-up process.

[0040] Parent notification mechanism: The system will update the child’s riding status in real time, including the time the vehicle arrives at the station and the estimated arrival time, and send the corresponding information to the user end, so that parents can make corresponding pick-up arrangements in time.

[0041] Safety measures: Establish a comprehensive safety mechanism, including emergency contact function and rapid response to abnormal situations, to ensure that quick action can be taken in any situation to protect the safety of children.

[0042] In this way, through these functions, the smart school bus warning system not only improves the safety of students going to and from school, but also increases parents' trust in school bus services, allowing parents to be more assured about their children's riding experience.

[0043] Here, the business unit personnel configure the target vehicle's station in the background. The system uses electronic maps to plan the route of the starting point, the end point, and the intermediate passing points, and generates a preset route. The operator can also readjust the planned preset route. When "Save" is clicked, the system performs the route warning algorithm. In addition, the shift information is bound to the preset route, and then the driver and vehicle are bound to the shift. In this way, the system knows which vehicle, which driver, and at what time to drive which route. Before departure, the driver logs in to the mobile application to upload the vehicle GPS data in real time.

[0044] In the specific implementation, when the driver starts the school bus to pick up the children, he logs in to his account in the customized driver-side app, finds his own shift in the app, and clicks "Start Trip". The driver-side app will send the driver information and shift information to the server. At this time, after the server receives the "Start Trip" action, it will create a memory space data for the driver and the route so that the GPS data received later can be processed quickly. At this time, the driver-side app will send the GPS information of the mobile phone to the school bus server at a preset time interval, such as 3 seconds. The location data of the GPS point sent is mainly longitude data, latitude data, and timestamp data.

[0045] S102: Preprocessing the real-time received GPS point location data of the target vehicle to obtain preprocessed GPS point location data.

[0046] The preprocessing includes noise filtering, abnormal data elimination and redundancy elimination.

[0047] In the specific implementation, after receiving the GPS data sent by the application, the system performs position determination and correction algorithms. The correction content, i.e., preprocessing, includes:

[0048] Abnormal data elimination: Correct the GPS trajectory data of the vehicle to eliminate abnormal points and ensure the accuracy of the trajectory data.

[0049] Redundancy elimination processing: In the trajectory data, there may be duplicate data at the same time or redundant data when the vehicle stops. The algorithm is used to remove this redundant information to improve data processing efficiency.

[0050] Noise filtering: Apply the Kalman filter algorithm to smooth the trajectory data, reduce the impact of data noise, and more accurately estimate the actual state of the target vehicle.

[0051] S103: For any of the processed GPS points, detecting whether the GPS point is within the electronic fence of the preset driving route, and detecting whether the actual driving direction of the target vehicle is consistent with the prescribed route direction.

[0052] The actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point.

[0053] For example, calculate the current GPS point ( , ) and the next GPS point ( , ) direction With the specified route direction Compare, if , then enter the drift cleaning, where is the preset angle threshold; .

[0054] In specific implementation, through the electronic fence check, it can be ensured that the GPS point is within the electronic fence of the preset driving route; in addition, the judgment is made based on the consistency between the actual driving direction of the vehicle and the prescribed route direction.

[0055] S104: Determine whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and issue a warning if it has.

[0056] In a specific implementation, if the GPS point exceeds the electronic fence or the direction is inconsistent, an early warning is triggered and recorded. In addition, the algorithm parameters can be adjusted according to the early warning results to optimize the correction effect.

[0057] In the embodiment of the present application, by receiving the driving request for the target vehicle to start the journey sent by the driver, the position data of each GPS point of the target vehicle is received in real time during the driving process of the target vehicle; the position data of the GPS point of the target vehicle received in real time is preprocessed to obtain the position data of the preprocessed GPS point; for any processed GPS point, it is detected whether the GPS point is within the electronic fence of the preset driving route, and whether the actual driving direction of the target vehicle is consistent with the specified route direction; according to the detection results of a preset number of GPS points, it is determined whether the target vehicle has deviated from the driving route, and if so, an early warning is issued. In this way, the safety of the vehicle can be improved by tracking and monitoring the target vehicle and issuing an early warning when the target vehicle deviates from the driving route.

[0058] In a possible implementation, noise filtering is performed on the location data of the GPS point of the target vehicle according to the following steps:

[0059] Initializing filter parameters of the Kalman filter, the filter parameters including an initial state, an initial covariance matrix, a state transfer matrix, an observation matrix, a process noise covariance matrix, and an observation noise covariance matrix;

[0060] Performing noise filtering processing on the GPS point position data of the target vehicle received at the first moment through the Kalman filter, and predicting the vehicle state of the target vehicle through the GPS point position data of the target vehicle after the noise filtering processing; the vehicle state includes the actual vehicle speed and the actual driving direction;

[0061] The predicted vehicle state is updated according to the position data of the GPS point of the target vehicle received at a second moment; the second moment is a moment after the first moment.

[0062] Here, the Kalman filter is used to smooth the trajectory and predict the vehicle state, and the Kalman filter parameters and the electronic fence threshold are adjusted according to the warning results. In the specific implementation, the filter parameters of the Kalman filter are first set, including the initial state , the initial covariance matrix , the state transfer matrix , the observation matrix , the process noise covariance matrix , the observation noise covariance matrix .

[0063] The Kalman filter updates the vehicle status:

[0064] Prediction status: , ;

[0065] Update status: ;

[0066] ;

[0067] ;

[0068] in, is the predicted vehicle state at the second moment, is the vehicle state at the first moment, is the updated vehicle state at the second moment; is the covariance matrix of the second moment of the forecast; is the covariance matrix at the first moment, is the updated covariance matrix of the second moment, It is used to characterize the prediction step, which is mainly used to predict the state at the next time point. It is based on the previous state estimation and system model to predict the future state of the system. For a time step A matrix that maps the system state vector to the observation space, describing how the state variables affect the observations; For a time step The calculated gain matrix is ​​used to determine the weights between the observed values ​​and the predicted state estimates; is at the time step The vector of observed system states; is the identity matrix, which has the same dimension as the state vector.

[0069] In a possible implementation, after preprocessing the real-time received GPS point location data of the target vehicle to obtain the preprocessed GPS point location data, the vehicle driving route deviation warning method further includes:

[0070] Identify the position data where the trajectory drift occurs from the pre-processed position data of the GPS point of the target vehicle by one or more algorithms selected from the speed threshold method, the distance threshold method, and the angle threshold method;

[0071] The position data of the trajectory drift will be adjusted according to the speed and driving direction of the target vehicle predicted by the Kalman filter to eliminate the drift.

[0072] Here, due to unstable GPS signals or environmental interference, the trajectory data may drift. The drift data in the trajectory is identified and cleaned up by the speed threshold method, the distance threshold method, or the angle threshold method. Specifically, the standard for determining GPS drift data is determined, and the spatial distance principle is used to correct the GPS drift data.

[0073] For example, when the GPS location data is not on a city road, but is within, for example, 50 meters of a road point, the server will treat it as normal data. If it exceeds 50 meters, a separate memory will be opened to start recording the offset. If, for example, 30 GPS points are continuously exceeded and are all offset data, it means that multiple GPS points have continuously exceeded the range of the electronic fence, and an early warning mechanism will be triggered.

[0074] In a possible implementation manner, before receiving the driving request for the target vehicle to start the trip sent by the driver end, the vehicle driving route deviation warning method further includes:

[0075] Splitting the preset driving route on the electronic map according to the preset interval distance to obtain multiple route location points;

[0076] For any of the line location points, calculate the location data of each map location point within a preset electronic fence threshold range with the line location point as the center point;

[0077] Determine the location data of each map location point corresponding to the plurality of route location points as electronic fence data, and store the electronic fence data;

[0078] The step of detecting, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route comprises:

[0079] Determine whether the location data of the GPS point is in the electronic fence data;

[0080] If so, determining that the GPS point is within the electronic fence of the preset driving route;

[0081] If not, it is determined that the GPS point is not within the electronic fence of the preset driving route.

[0082] In a specific implementation, the preset driving route on the electronic map is split according to a preset interval, such as every 50 meters, and the longitude and latitude data within a preset electronic fence threshold, such as 50 meters, around each split point is calculated.

[0083] Great circle distance calculation between two points The calculation formula is as follows:

[0084] ;

[0085] ;

[0086] ;

[0087] in, and represents the calculation process, ( , ) is the location data (longitude data and latitude data) of any point on the preset driving route, ( , ) is the location data of another line location point, and are the longitude and latitude differences between two points (in radians), is the radius of the Earth (about 6371 km), is a commonly used function in mathematics, namely the two-dimensional version of the inverse tangent function. The function returns only arrive The angle value in the range cannot directly determine which quadrant the input value is in. The function accepts two parameters: is the sine value, is the cosine value. It returns the angle value between arrive Within the scope, according to and The symbol, It is possible to determine in which of the four quadrants the returned angle is.

[0088] ;in The inverse tangent function returns the value of an angle whose tangent is equal to the given value. If the tangent of an angle is known, The function can be used to find the measure of this angle.

[0089] .

[0090] Here, the longitude and latitude within a range of 50 meters are then calculated, which means that the line is divided into intervals of 50 meters, each interval is used as the center point, and the center point has a 50-meter electronic fence.

[0091] longitude: (Each degree of longitude is approximately 111.32 kilometers at the equator);

[0092] latitude: (Each degree of latitude is approximately equal to 111.32 kilometers).

[0093] Here, after calculating the position data of each map position point corresponding to a plurality of route position points in the preset driving route, these data are stored in the server for calculating at any time whether the target vehicle has been changed or deviated.

[0094] For example, for each GPS point , perform the following steps to check the electric fence:

[0095] ;

[0096] in, This is the electronic fence data.

[0097] Among them, when the business personnel plan an entire preset driving route, the server will use an algorithm to define a point every 50 meters on the preset driving route, that is, the route location point, and then use the 50-meter range of each "route location point" as the warning range of GPS deviation to form the electronic fence data.

[0098] In a possible implementation, abnormal data removal is performed on the location data of the GPS point of the target vehicle according to the following steps:

[0099] After receiving the position data of the target vehicle at the third moment, if the position data of the target vehicle at the fourth moment is received, the position data at the fourth moment is determined as abnormal data; the fourth moment is a moment before the third moment;

[0100] The abnormal data is eliminated.

[0101] In one example, there may be a delay in uploading the GPS location of the vehicle, or data blockage. The possible situation is: the GPS data at 10:00:00 is not sent out, and the data at 10:00:03 arrives at the server. After the server processes the data at 10:00:03, the data at 10:00:00 is received. In this case, the system regards the data at 10:00:00 as abnormal point data and removes it.

[0102] In a possible implementation manner, the position data of the GPS point of the target vehicle is subjected to redundancy elimination processing according to the following steps:

[0103] Calculate the target distance between any two GPS points of the target vehicle received within a preset time period;

[0104] If the target distance is less than the distance threshold, the position data of one of the two arbitrary GPS points is removed as redundant data.

[0105] In a specific implementation, the redundancy elimination process is to remove points that are too close in the trajectory to simplify the trajectory.

[0106] Here, for two GPS points and ,like ( is the set distance threshold), then merge and remove .

[0107] For example, if the GPS data uploaded to the server by the target vehicle is repeated within 30 minutes, it can be regarded as redundant data and the server will no longer perform corresponding processing.

[0108] In a possible implementation manner, the vehicle driving route deviation warning method further includes:

[0109] Inputting the historical driving behavior data of the target vehicle into the spatiotemporal behavior prediction model to predict the spatiotemporal behavior data of the target vehicle on the preset driving route; the historical driving behavior data includes historical trajectory data, historical speed data, historical acceleration data, historical direction change data and time factors;

[0110] The method of predicting the vehicle state of the target vehicle by using the position data of the GPS point of the target vehicle after the noise filtering process comprises:

[0111] The vehicle state of the target vehicle is predicted by using the position data of the GPS point after noise filtering and the spatiotemporal behavior data on the preset driving route.

[0112] Here, this application introduces the "Spatiotemporal Behavior Prediction Model" (SBPM) into the GPS trajectory correction algorithm, which can further improve the prediction ability and correction accuracy of the algorithm. SBPM will consider the vehicle's historical trajectory data, historical speed data, historical acceleration data, historical direction change data, and time factors to predict the vehicle's spatiotemporal behavior on the specified route, and compare it with the actual GPS data to identify and correct deviations. By calculating the vehicle's driving angle and combining the spatiotemporal behavior prediction model, stable and accurate vehicle tracking and driving direction judgment can be achieved in complex traffic scenarios.

[0113] It should be noted that it is possible to compare the GPS uploaded by the vehicle with the GPS of the destination site to determine whether the target vehicle is heading in the correct direction.

[0114] Here, relevant considerations include:

[0115] Historical trajectory analysis: Analyze the vehicle’s past trajectory data to extract driving patterns and rules.

[0116] Speed ​​and acceleration model: Build a dynamic model of vehicle speed and acceleration to predict the vehicle's position at the next moment.

[0117] Direction Change Prediction: Predict the vehicle’s steering behavior based on its steering history and current speed.

[0118] Fusion of prediction and actual data: Combine the output of the prediction model with the actual GPS data for deviation analysis and correction.

[0119] Among them, historical trajectory feature extraction: is a set of historical trajectory features, is the length of the historical trajectory considered, For each GPS data, Represents time;

[0120] ;

[0121] Among them, the velocity and acceleration models are: is the speed of the present moment, is the acceleration, is the current location, is the time interval;

[0122] ; ;

[0123] Direction change prediction: is the current direction, is the change in direction .

[0124] Here, this application prefabricates the vehicle route, and the system automatically calculates the route into points plus out-of-range warning thresholds; reminder enhancement can remind background dispatchers and parents; mobile phone GPS data upload and algorithm correction.

[0125] In one possible implementation, the vehicle deviation warning triggering algorithm includes the following four parts:

[0126] Dynamic weight adjustment: Dynamically adjust the weight of the Kalman filter according to vehicle speed and direction consistency to adapt to different driving conditions.

[0127] Direction consistency score: A direction consistency score is introduced to quantify the consistency of the vehicle's direction with the prescribed route.

[0128] Drift Cleaning: Drift cleaning takes into account not only vehicle speed but also vehicle direction, improving the accuracy of correction.

[0129] Electronic fence inspection: Combining comprehensive correction scoring and electronic fence inspection improves the accuracy and reliability of the early warning system.

[0130] Among them, the GPS trajectory correction algorithm based on dynamic weight and directional consistency model (Dynamic Weighted Directional Consistency Model, DW-DCM).

[0131] (1) Definition:

[0132] , a set of GPS data points, where The location data of any GPS point;

[0133] : The longitude and latitude sequence of the preset driving route;

[0134] =50 meters: electronic fence threshold;

[0135] : Vehicle speed sequence;

[0136] : vehicle direction sequence;

[0137] : GPS data set after Kalman filter processing;

[0138] : Vehicle displacement vector set;

[0139] : A collection of time intervals.

[0140] (2) Redundancy elimination

[0141] Define the redundancy elimination function , based on the distance between two points and the time interval:

[0142] ;

[0143] in, and is the preset minimum distance and time threshold.

[0144] (3) Drift cleaning

[0145] Drift Cleanup Function Based on vehicle speed and direction:

[0146] ;

[0147] in, According to speed and time Calculate the drift correction factor.

[0148] (4) Direction consistency score

[0149] Define the directional consistency scoring function ,

[0150] ;

[0151] in, For at point Planned directions for preset driving routes.

[0152] (5) Kalman filter weight

[0153] Define the Kalman filter weight function , dynamically adjust the Kalman filter weights according to vehicle speed and direction consistency:

[0154] ;

[0155] in, and is an adjustable parameter.

[0156] (6) Comprehensive correction score

[0157] Define comprehensive correction scoring function ,

[0158] .

[0159] (7) Electronic fence inspection

[0160] Define the electronic fence check function ,

[0161] .

[0162] (8) Warning triggering conditions

[0163] Warning trigger function ,

[0164] ;

[0165] if , then trigger the warning.

[0166] Based on the same application concept, the embodiments of the present application also provide a warning device for vehicle driving route deviation corresponding to the warning method for vehicle driving route deviation provided in the above embodiments. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the warning method for vehicle driving route deviation in the above embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0167] like Figure 2 , Figure 3 As shown, Figure 2 This is one of the functional module diagrams of a vehicle driving route deviation warning device 200 provided in an embodiment of the present application, Figure 3This is a second functional module diagram of a vehicle driving route deviation warning device 200 provided in an embodiment of the present application. Figure 2 As shown, the vehicle driving route deviation warning device 200 is applied to the service end of the vehicle deviation warning system, the vehicle deviation warning system includes a user end, a driver end and a dispatch center end, and the vehicle driving route deviation warning device 200 includes:

[0168] The receiving module 210 is used to receive a driving request sent by the driver for the target vehicle to start a trip, and receive the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; the driving request includes driver information and shift information, and the shift information is bound to a preset driving route;

[0169] The preprocessing module 220 is used to preprocess the GPS point location data of the target vehicle received in real time to obtain the preprocessed GPS point location data; the preprocessing includes noise filtering, abnormal data elimination, and redundancy elimination;

[0170] The detection module 230 is used to detect, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route, and to detect whether the actual driving direction of the target vehicle is consistent with the prescribed route direction; the actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point;

[0171] The determination module 240 is used to determine whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and to issue an early warning if it has deviated from the driving route.

[0172] In a possible implementation, Figure 2 As shown, the preprocessing module 220 is specifically used to perform noise filtering processing on the position data of the GPS point of the target vehicle according to the following steps:

[0173] Initializing filter parameters of the Kalman filter, the filter parameters including an initial state, an initial covariance matrix, a state transfer matrix, an observation matrix, a process noise covariance matrix, and an observation noise covariance matrix;

[0174] Performing noise filtering processing on the GPS point position data of the target vehicle received at the first moment through the Kalman filter, and predicting the vehicle state of the target vehicle through the GPS point position data of the target vehicle after the noise filtering processing; the vehicle state includes the actual vehicle speed and the actual driving direction;

[0175] The predicted vehicle state is updated according to the position data of the GPS point of the target vehicle received at a second moment; the second moment is a moment after the first moment.

[0176] In a possible implementation, Figure 3 As shown, the vehicle driving route deviation warning device 200 also includes a drift processing module 250; after the preprocessing module 220 preprocesses the position data of the GPS point of the target vehicle received in real time to obtain the preprocessed position data of the GPS point, the drift processing module 250 is used to:

[0177] Identify the position data where the trajectory drift occurs from the pre-processed position data of the GPS point of the target vehicle by one or more algorithms selected from the speed threshold method, the distance threshold method, and the angle threshold method;

[0178] The position data of the trajectory drift will be adjusted according to the speed and driving direction of the target vehicle predicted by the Kalman filter to eliminate the drift.

[0179] In a possible implementation, Figure 3 As shown, the vehicle driving route deviation warning device further includes a splitting module 260; before the receiving module 210 receives the driving request for the target vehicle to start the trip sent by the driver, the splitting module 260 is used to:

[0180] Splitting the preset driving route on the electronic map according to the preset interval distance to obtain multiple route location points;

[0181] For any of the line location points, calculate the location data of each map location point within a preset electronic fence threshold range with the line location point as the center point;

[0182] Determine the location data of each map location point corresponding to the plurality of route location points as electronic fence data, and store the electronic fence data;

[0183] The step of detecting, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route comprises:

[0184] Determine whether the location data of the GPS point is in the electronic fence data;

[0185] If so, determining that the GPS point is within the electronic fence of the preset driving route;

[0186] If not, it is determined that the GPS point is not within the electronic fence of the preset driving route.

[0187] In a possible implementation, Figure 3 As shown, the pre-processing module 220 is specifically used to perform abnormal data elimination processing on the location data of the GPS point of the target vehicle according to the following steps:

[0188] After receiving the position data of the target vehicle at the third moment, if the position data of the target vehicle at the fourth moment is received, the position data at the fourth moment is determined as abnormal data; the fourth moment is a moment before the third moment;

[0189] The abnormal data is eliminated.

[0190] In a possible implementation, Figure 3 As shown, the pre-processing module 220 is specifically used to perform redundancy elimination processing on the position data of the GPS point of the target vehicle according to the following steps:

[0191] Calculate the target distance between any two GPS points of the target vehicle received within a preset time period;

[0192] If the target distance is less than the distance threshold, the position data of one of the two arbitrary GPS points is removed as redundant data.

[0193] In a possible implementation, Figure 3 As shown, the pre-processing module 220 is also used for:

[0194] Inputting the historical driving behavior data of the target vehicle into the spatiotemporal behavior prediction model to predict the spatiotemporal behavior data of the target vehicle on the preset driving route; the historical driving behavior data includes historical trajectory data, historical speed data, historical acceleration data, historical direction change data and time factors;

[0195] The vehicle state of the target vehicle is predicted by using the position data of the GPS point after noise filtering and the spatiotemporal behavior data on the preset driving route.

[0196] Based on the same application concept, see Figure 4 As shown, it is a structural schematic diagram of an electronic device 400 provided in an embodiment of the present application, including: a processor 410, a memory 420 and a bus 430, the memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 is running, the processor 410 and the memory 420 communicate through the bus 430, and the machine-readable instructions are executed by the processor 410 when running to perform the steps of the vehicle driving route deviation warning method as described in any of the above embodiments.

[0197] Based on the same application concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle driving route deviation warning method provided in the above embodiment are executed.

[0198] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned vehicle driving route deviation warning method can be executed. By tracking and monitoring the target vehicle and issuing a warning when the target vehicle deviates from the driving route, the safety of the vehicle can be improved.

[0199] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

[0200] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0201] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0202] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0203] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0204] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0205] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A vehicle driving route deviation warning method, characterized in that: The service end is applied to the vehicle deviation warning system, the vehicle deviation warning system includes a user end, a driver end and a dispatch center end, and the vehicle driving route deviation warning method includes: Receive a driving request for a target vehicle to start a trip sent by a driver, and receive the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; the driving request includes driver information and shift information, and the shift information is bound to a preset driving route; Preprocessing the real-time received GPS point location data of the target vehicle to obtain preprocessed GPS point location data; the preprocessing includes noise filtering, abnormal data elimination, and redundancy elimination; For any of the processed GPS points, detect whether the GPS point is within the electronic fence of the preset driving route, and detect whether the actual driving direction of the target vehicle is consistent with the prescribed route direction; the actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point; Based on the detection results of a preset number of GPS points, it is determined whether the target vehicle has deviated from the driving route, and an early warning is issued if it has occurred.

2. The vehicle driving route deviation warning method according to claim 1 is characterized in that: The position data of the GPS point of the target vehicle is subjected to noise filtering processing according to the following steps: Initializing filter parameters of the Kalman filter, the filter parameters including an initial state, an initial covariance matrix, a state transfer matrix, an observation matrix, a process noise covariance matrix, and an observation noise covariance matrix; Performing noise filtering processing on the GPS point position data of the target vehicle received at the first moment through the Kalman filter, and predicting the vehicle state of the target vehicle through the GPS point position data of the target vehicle after the noise filtering processing; the vehicle state includes the actual vehicle speed and the actual driving direction; The predicted vehicle state is updated according to the position data of the GPS point of the target vehicle received at a second moment; the second moment is a moment after the first moment.

3. The vehicle driving route deviation warning method according to claim 2 is characterized in that: After preprocessing the real-time received GPS point location data of the target vehicle to obtain the preprocessed GPS point location data, the vehicle driving route deviation warning method further includes: Identify the position data where the trajectory drift occurs from the pre-processed position data of the GPS point of the target vehicle by one or more algorithms selected from the speed threshold method, the distance threshold method, and the angle threshold method; The position data of the trajectory drift will be adjusted according to the speed and driving direction of the target vehicle predicted by the Kalman filter to eliminate the drift.

4. The vehicle driving route deviation warning method according to claim 1 is characterized in that: Before receiving the driving request for the target vehicle to start the trip sent by the driver, the vehicle driving route deviation warning method further includes: Splitting the preset driving route on the electronic map according to the preset interval distance to obtain multiple route location points; For any of the line location points, calculate the location data of each map location point within a preset electronic fence threshold range with the line location point as the center point; Determine the location data of each map location point corresponding to the plurality of route location points as electronic fence data, and store the electronic fence data; The step of detecting, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route comprises: Determine whether the location data of the GPS point is in the electronic fence data; If so, determining that the GPS point is within the electronic fence of the preset driving route; If not, it is determined that the GPS point is not within the electronic fence of the preset driving route.

5. The vehicle driving route deviation warning method according to claim 1 is characterized in that: The position data of the GPS point of the target vehicle is subjected to abnormal data elimination processing according to the following steps: After receiving the position data of the target vehicle at the third moment, if the position data of the target vehicle at the fourth moment is received, the position data at the fourth moment is determined as abnormal data; the fourth moment is a moment before the third moment; The abnormal data is eliminated.

6. The vehicle driving route deviation warning method according to claim 1 is characterized in that: The position data of the GPS point of the target vehicle is subjected to redundancy elimination processing according to the following steps: Calculate the target distance between any two GPS points of the target vehicle received within a preset time period; If the target distance is less than the distance threshold, the position data of one of the two arbitrary GPS points is removed as redundant data.

7. The vehicle driving route deviation warning method according to claim 2 is characterized in that: The vehicle driving route deviation early warning method further includes: Inputting the historical driving behavior data of the target vehicle into the spatiotemporal behavior prediction model to predict the spatiotemporal behavior data of the target vehicle on the preset driving route; the historical driving behavior data includes historical trajectory data, historical speed data, historical acceleration data, historical direction change data and time factors; The method of predicting the vehicle state of the target vehicle by using the position data of the GPS point of the target vehicle after the noise filtering process comprises: The vehicle state of the target vehicle is predicted by using the position data of the GPS point after noise filtering and the spatiotemporal behavior data on the preset driving route.

8. A warning device for vehicle deviation from driving route, characterized in that: The service end used in the vehicle deviation warning system includes a user end, a driver end and a dispatch center end. The vehicle driving route deviation warning device includes: A receiving module, used to receive a driving request sent by a driver for a target vehicle to start a trip, and to receive the location data of each GPS point of the target vehicle in real time during the driving process of the target vehicle; the driving request includes driver information and shift information, and the shift information is bound to a preset driving route; A preprocessing module is used to preprocess the position data of the GPS point of the target vehicle received in real time to obtain the preprocessed position data of the GPS point; the preprocessing includes noise filtering, abnormal data elimination, and redundancy elimination; A detection module is used to detect, for any of the processed GPS points, whether the GPS point is within the electronic fence of the preset driving route, and to detect whether the actual driving direction of the target vehicle is consistent with the prescribed route direction; the actual driving direction is determined based on the position data of the GPS point and the position data of the next GPS point; The determination module is used to determine whether the target vehicle has deviated from the driving route based on the detection results of a preset number of GPS points, and to issue an early warning if it has deviated.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are run by the processor, the steps of the vehicle driving route deviation warning method as described in any one of claims 1 to 7 are executed.

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 steps of the vehicle driving lane deviation warning method as claimed in any one of claims 1 to 7 are executed.