Vehicle travel division method, device, equipment and medium
By acquiring and processing the vehicle's power-on and off signals, merging time intervals and completing missing road sections, the problem of inaccurate vehicle trip division is solved, and the completeness of the trip and the accuracy of the data are improved.
Patent Information
- Application Number
- CN202410829479.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
AI Technical Summary
The accuracy of vehicle trip division in the prior art is low, resulting in the problem that the trip is divided into multiple small segments.
By acquiring the power-on and power-off signals of the target vehicle within a preset period, determining the corresponding time interval after sorting, merging signals smaller than the preset interval as way points, updating the power sequence, and using it to divide the vehicle's itinerary, Complete missing road sections, eliminate abnormal data, and perform geographic location analysis to improve accuracy.
It reduces the problem of trip segmentation caused by users pausing midway, improves the accuracy of trip division, and ensures the integrity of the vehicle trip and the accuracy of the data.
Smart Images

Figure CN118609239A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle data analysis, and in particular to a vehicle trip division method, device, equipment and medium. Background Art
[0002] With the continuous development of automobile technology, cars are becoming more and more popular, saving people time, improving work efficiency, facilitating travel, enriching life, and promoting economic development. In the process of using cars, people's demand and understanding of cars are also increasing. For example, people can determine the time required for each trip by understanding their usual driving itinerary.
[0003] However, the accuracy of vehicle trip division in related technologies is low. Therefore, how to improve the accuracy of trip division is a problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application solve the technical problem of low accuracy of vehicle trip division in the prior art by providing a vehicle trip division method, device, equipment and medium, and achieve the technical effect of improving the accuracy of trip division.
[0005] In a first aspect, the present application provides a vehicle trip division method, the method comprising:
[0006] Obtaining the power-on signal and power-off signal of the target vehicle within a preset period;
[0007] The power-on and power-off sequences are obtained according to the generation timing of each power-on signal and power-off signal;
[0008] Determine the time interval between two consecutive power-down signals and power-up signals in the power-up and power-down sequence;
[0009] Combine power-off signals and power-on signals whose time interval is less than a preset interval into waypoints, and update the power-on and power-off sequence;
[0010] The vehicle travel distance corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a target vehicle travel distance for user query.
[0011] Further, the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a target vehicle travel section, including:
[0012] Determine whether there is a travel loss phenomenon in the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence;
[0013] Divide each vehicle trip without trip loss into a target vehicle trip;
[0014] For a to-be-processed vehicle trip with a trip loss phenomenon, obtaining data loss location information and data recovery location information of a road section corresponding to the to-be-processed vehicle trip with a trip loss phenomenon;
[0015] According to the data loss location information, data recovery location information and map road network data, the itinerary of the corresponding road section where the itinerary of the vehicle to be processed is completed;
[0016] Each completed vehicle trip to be processed is divided into a target vehicle trip.
[0017] Furthermore, after dividing the vehicle travel distance corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance, the method further includes:
[0018] Obtaining the original vehicle position data, vehicle status data, vehicle accumulated mileage data, and vehicle speed data corresponding to each target vehicle trip;
[0019] Respectively remove abnormal data and invalid data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, respectively correct the offset data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, and then obtain valid data of vehicle position, valid data of vehicle status, valid data of vehicle cumulative mileage and valid data of vehicle speed;
[0020] The valid data of vehicle position, valid data of vehicle status, valid data of vehicle accumulated mileage and valid data of vehicle speed corresponding to each target vehicle trip are used as the trip data of each target vehicle trip for user query.
[0021] Furthermore, after dividing the vehicle travel distance corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance, the method further includes:
[0022] Obtain the starting position information corresponding to the power-on signal and the end position information corresponding to the power-off signal of each target vehicle trip;
[0023] Performing map reverse address analysis on the starting point location information and the end point location information of each target vehicle trip to determine the starting point geographical location and the end point geographical location corresponding to the starting point location information and the end point location information of each target vehicle trip;
[0024] The starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query.
[0025] Furthermore, the starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query, including:
[0026] When there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, the power-on signal corresponding to the starting geographical location is replaced with an adjacent and earlier power-off signal in the updated power-on and power-off sequence;
[0027] The location information of the adjacent and earlier power-off signal in the updated power-on and power-off sequence is used as the updated starting point location information, and the starting point geographical location is updated according to the updated starting point location information, and the updated starting point geographical location is used as the travel data of the corresponding vehicle trip for user query.
[0028] Furthermore, the starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query, including:
[0029] When there is a corresponding vehicle trip with an abnormal starting geographical location, the first valid location after the power-on signal corresponding to the starting geographical location is determined, and the starting geographical location is replaced with the first valid location. The updated starting geographical location is used as the trip data of the corresponding vehicle trip for user query.
[0030] Furthermore, the starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query, including:
[0031] When there is a corresponding vehicle trip whose destination geographical location is an abnormal geographical location, the power-off signal corresponding to the destination geographical location is replaced with an adjacent and later power-on signal in the updated power-on and power-off sequence;
[0032] The location information of the adjacent and later power-on signal in the updated power-on and power-off sequence is used as the updated destination location information, and the destination geographic location is updated according to the updated destination location information, and the updated destination geographic location is used as the travel data of the corresponding vehicle trip for user query.
[0033] In a second aspect, the present application provides a vehicle trip division device, the device comprising:
[0034] An acquisition module, used to acquire a power-on signal and a power-off signal of a target vehicle within a preset period;
[0035] A sorting module, used to sort the power-on and power-off signals according to their generation timing to obtain a power-on and power-off sequence;
[0036] A time determination module, used to determine the time interval between two consecutive power-down signals and power-up signals in a power-up and power-down sequence;
[0037] A sequence update module, used to merge power-off signals and power-on signals whose time interval is less than a preset interval into a path point, and update the power-on and power-off sequence;
[0038] The trip division module is used to divide the vehicle trip corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip for user query.
[0039] Furthermore, the itinerary division module is used to:
[0040] Determine whether there is a travel loss phenomenon in the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence;
[0041] Divide each vehicle trip without trip loss into a target vehicle trip;
[0042] For a to-be-processed vehicle trip with a trip loss phenomenon, obtaining data loss location information and data recovery location information of a road section corresponding to the to-be-processed vehicle trip with a trip loss phenomenon;
[0043] According to the data loss location information, data recovery location information and map road network data, the itinerary of the corresponding road section where the itinerary of the vehicle to be processed is completed;
[0044] Each completed vehicle trip to be processed is divided into a target vehicle trip.
[0045] Furthermore, the device also includes a data processing module, which is used to:
[0046] After dividing the vehicle trips corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip, obtaining the vehicle position original data, vehicle status original data, vehicle accumulated mileage original data and vehicle speed original data corresponding to each target vehicle trip;
[0047] Respectively remove abnormal data and invalid data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, respectively correct the offset data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, and then obtain valid data of vehicle position, valid data of vehicle status, valid data of vehicle cumulative mileage and valid data of vehicle speed;
[0048] The valid data of vehicle position, valid data of vehicle status, valid data of vehicle accumulated mileage and valid data of vehicle speed corresponding to each target vehicle trip are used as the trip data of each target vehicle trip for user query.
[0049] Furthermore, the device also includes a data processing module, which is used to:
[0050] After dividing the vehicle trips corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip, obtaining the starting position information corresponding to the power-on signal and the ending position information corresponding to the power-off signal of each target vehicle trip;
[0051] Performing map reverse address analysis on the starting point location information and the end point location information of each target vehicle trip to determine the starting point geographical location and the end point geographical location corresponding to the starting point location information and the end point location information of each target vehicle trip;
[0052] The starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query.
[0053] Furthermore, the device also includes a data processing module, which is used to:
[0054] When there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, the power-on signal corresponding to the starting geographical location is replaced with an adjacent and earlier power-off signal in the updated power-on and power-off sequence;
[0055] The location information of the adjacent and earlier power-off signal in the updated power-on and power-off sequence is used as the updated starting point location information, and the starting point geographical location is updated according to the updated starting point location information, and the updated starting point geographical location is used as the travel data of the corresponding vehicle trip for user query.
[0056] Furthermore, the device also includes a data processing module, which is used to:
[0057] When there is a corresponding vehicle trip with an abnormal starting geographical location, the first valid location after the power-on signal corresponding to the starting geographical location is determined, and the starting geographical location is replaced with the first valid location. The updated starting geographical location is used as the trip data of the corresponding vehicle trip for user query.
[0058] Furthermore, the device also includes a data processing module, which is used to:
[0059] When there is a corresponding vehicle trip whose destination geographical location is an abnormal geographical location, the power-off signal corresponding to the destination geographical location is replaced with an adjacent and later power-on signal in the updated power-on and power-off sequence;
[0060] The location information of the adjacent and later power-on signal in the updated power-on and power-off sequence is used as the updated destination location information, and the destination geographic location is updated according to the updated destination location information, and the updated destination geographic location is used as the travel data of the corresponding vehicle trip for user query.
[0061] In a third aspect, the present application provides an electronic device, including:
[0062] processor;
[0063] a memory for storing processor-executable instructions;
[0064] The processor is configured to execute to implement a vehicle trip division method as provided in the first aspect.
[0065] In a fourth aspect, the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement a vehicle trip division method as provided in the first aspect.
[0066] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0067] This embodiment obtains the power-on signal and power-off signal of the target vehicle within a preset period, and then obtains the power-on and power-off sequence according to the generation timing of each power-on signal and power-off signal; then determines the time interval between each two consecutive power-off signals and power-on signals in the power-on and power-off sequence; and merges the power-off signals and power-on signals whose time interval is less than the preset interval into a waypoint, and updates the power-on and power-off sequence; finally, the vehicle journey corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a section of the target vehicle journey for user query. It can be seen that this embodiment divides the journey of the target vehicle within a preset period based on the power-on and power-off signals of the target vehicle and the intervals between the adjacent power-off signals and power-on signals, which can reduce the probability of the target vehicle's journey being divided into multiple small sections due to the user's pause, thereby improving the accuracy of the target vehicle's journey division. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0069] Figure 1 A schematic diagram of a flow chart of a vehicle trip division method provided in this embodiment;
[0070] Figure 2 A schematic diagram of the structure of a vehicle trip division device provided in this embodiment;
[0071] Figure 3 A schematic diagram of the structure of an electronic device provided in this embodiment. DETAILED DESCRIPTION
[0072] The embodiment of the present application solves the technical problem of low accuracy of vehicle trip division in the prior art by providing a vehicle trip division method.
[0073] The technical solution of the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:
[0074] This embodiment obtains the power-on signal and power-off signal of the target vehicle within a preset period, and then obtains the power-on and power-off sequence according to the generation timing of each power-on signal and power-off signal; then determines the time interval between each two consecutive power-off signals and power-on signals in the power-on and power-off sequence; and merges the power-off signals and power-on signals whose time interval is less than the preset interval into a waypoint, and updates the power-on and power-off sequence; finally, the vehicle journey corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a section of the target vehicle journey for user query. It can be seen that this embodiment divides the journey of the target vehicle within a preset period based on the power-on and power-off signals of the target vehicle and the intervals between the adjacent power-off signals and power-on signals, which can reduce the probability of the target vehicle's journey being divided into multiple small sections due to the user's pause, thereby improving the accuracy of the target vehicle's journey division.
[0075] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0076] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0077] This embodiment provides Figure 1 A vehicle trip division method is shown, the method comprising steps S11 to S15.
[0078] Step S11, obtaining a power-on signal and a power-off signal of the target vehicle within a preset period;
[0079] Step S12, obtaining a power-on and power-off sequence according to the generation timing of each power-on signal and power-off signal;
[0080] Step S13, determining the time interval between each two adjacent power-down signals and power-up signals in the power-up and power-down sequence;
[0081] Step S14, combining the power-off signals and the power-on signals whose time interval is less than the preset interval into a path point, and updating the power-on and power-off sequence;
[0082] Step S15 , dividing the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel section for user query.
[0083] The vehicle trip division method provided in this embodiment can be executed by a controller of the target vehicle or by a cloud server communicating with the target vehicle. The specific selection can be made according to actual conditions.
[0084] Step S11, obtaining a power-on signal and a power-off signal of a target vehicle within a preset period.
[0085] The target vehicle can be any vehicle that needs to be divided into trips, and can be an electric vehicle, a fuel vehicle, or a vehicle driven by other energy sources. The preset period can be set according to the actual needs of the user, for example, it can be a 24-hour period, or a week, month, quarter, year, etc. This embodiment is described below by taking the day as the preset period as an example.
[0086] The power-on signal and the power-off signal of the target vehicle within a preset period are obtained. The power-on signal can indicate that the user has started the vehicle, and the power-off signal can indicate that the user has stopped the vehicle. The user's itinerary can be roughly divided by the power-on signal and the power-off signal.
[0087] Step S12, obtaining a power-on and power-off sequence according to the generation timing of each power-on signal and power-off signal.
[0088] The power-on and power-off sequences are obtained by sorting them according to the generation timing of each power-on signal and power-off signal. For example, with a day as the preset period, 3 power-on signals and 4 power-off signals are collected, as shown in Table 1. The first row indicates the corresponding time of power-on and power-off, and the second row indicates whether it is power-on or power-off. The numbers in brackets in the second row are used to distinguish each power-on signal and power-off signal.
[0089] Table 1
[0090] time 1:00 9:00 10:00 10:05 12:00 18:00 19:00 Power on and off Power off (1) Power on (2) Power off (3) Power on (4) Power off (5) Power on (6) Power off (7)
[0091] Step S13, determining the time interval between every two adjacent power-down signals and power-up signals in the power-up and power-down sequence.
[0092] In this embodiment, "every two consecutive power-down signals and power-up signals" refer to the power-down signal in front and the power-up signal in the back, and the power-down signal is adjacent to the power-up signal. For example, power-down (1) and power-up (2) in Table 1 are a group of consecutive power-down signals and power-up signals, power-down (3) and power-up (4) in Table 1 are a group of consecutive power-down signals and power-up signals, and so on.
[0093] To determine the time interval between every two adjacent power-down signals and power-up signals in the power-up and power-down sequence, the time interval is obtained by subtracting the time corresponding to the power-down signal from the time corresponding to the power-up signal, as shown in Table 2.
[0094] Table 2
[0095]
[0096] Step S14, combining the power-off signals and the power-on signals whose time interval is less than the preset interval into a path point, and updating the power-on and power-off sequence.
[0097] Based on the time interval between the power-off signal and the power-on signal that are adjacent to each other, it can be determined whether the target vehicle is in the process of trip suspension or trip completion. When the time interval is greater than the preset interval, it can be considered that the user has completed the current trip and is in the process of trip completion; when the time interval is less than the preset interval, it can be considered that the user has not completed the current trip and is in the process of trip suspension. At this time, the location where the target vehicle is powered off can be recorded as a waypoint in the trip data of the current trip for subsequent query by the user.
[0098] The preset interval can be set according to actual needs. For example, 1 hour can be used as the preset interval, or 10 minutes can be used as the preset interval. This embodiment is described by taking 10 minutes as an example.
[0099] As shown in Table 2, it can be determined that the interval between power-off (3) and power-on (4) is only 5 minutes, which is less than the preset interval of 10 minutes. Therefore, it can be considered that the parking of the target vehicle at this stage belongs to the trip suspension state. Power-off (3) and power-on (4) can be combined as waypoints, and the updated power-on and power-off sequence shown in Table 3 can be obtained.
[0100] Table 3
[0101]
[0102] Step S15 , dividing the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel section for user query.
[0103] The “every two adjacent power-on signals and power-off signals” mentioned in this embodiment refers to the power-on signal in front and the power-off signal in the back, and the power-on signal and the power-off signal are adjacent to each other. It should be noted that when there is a waypoint between the power-on signal and the power-off signal, it also indicates that the power-on signal and the power-off signal are in an adjacent state. For example, power-on (2) and power-off (5) in Table 3 are a group of adjacent power-on signals and power-off signals. Even if there is a waypoint A between power-on (2) and power-off (5), it does not affect power-on (2) and power-off (5) as a group of adjacent power-on signals and power-off signals. In addition, power-on (6) and power-off (7) in Table 3 are a group of adjacent power-off signals and power-on signals.
[0104] The vehicle journey between power-on (2) and power-off (5) is divided into a target vehicle journey, indicating that the user has completed a complete vehicle journey, which is recorded as vehicle journey A. The vehicle journey between power-on (6) and power-off (7) is divided into a target vehicle journey, indicating that the user has completed another complete vehicle journey, which is recorded as vehicle journey B.
[0105] It can be seen that this embodiment divides the itinerary of the target vehicle within a preset period based on the up and down power signals of the target vehicle and the intervals between adjacent down power signals and up power signals, which can reduce the probability of the target vehicle's itinerary being divided into multiple small segments due to the user's pause, thereby improving the accuracy of the target vehicle's itinerary division.
[0106] Furthermore, step S15 can be decomposed into step S21 to step S25.
[0107] Step S21, determining whether there is a trip loss phenomenon in the vehicle trip corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence;
[0108] Step S22, dividing each vehicle trip without trip loss into a target vehicle trip;
[0109] Step S23, for the to-be-processed vehicle trip with trip loss phenomenon, obtaining data loss location information and data recovery location information of the road section corresponding to the to-be-processed vehicle trip with trip loss phenomenon;
[0110] Step S24, completing the itinerary of the vehicle to be processed corresponding to the road section where the itinerary is lost according to the data loss location information, the data recovery location information and the map road network data;
[0111] Step S25, dividing each completed vehicle trip to be processed into a target vehicle trip.
[0112] Regarding step S21, the vehicle trip corresponding to each two consecutive power-up signals and power-down signals in the updated power-up and power-down sequence is judged to determine whether there is a trip loss phenomenon, specifically, it is judged whether the position signal of the target vehicle is lost in the time period between each two consecutive power-up signals and power-down signals. When the position signal of the target vehicle is lost, no matter how long the position signal loss lasts, it is considered that the vehicle trip corresponding to each two consecutive power-up signals and power-down signals in the updated power-up and power-down sequence has a trip loss phenomenon. For example, when the target vehicle passes through a tunnel, there may be a position signal loss phenomenon; when the network of the target vehicle fails, there may also be a position signal loss phenomenon.
[0113] Regarding step S22, each vehicle trip without the trip loss phenomenon is divided into a target vehicle trip, that is, the vehicle trip without the trip loss phenomenon is divided into a target vehicle trip. For example, if the vehicle trip B in Table 3 does not have the position signal loss phenomenon, the vehicle trip B can be directly recorded as a complete target vehicle trip.
[0114] Regarding step S23, for the vehicle trip to be processed that has lost the trip phenomenon, for the road section where the position signal is lost, first determine the latest position signal recorded in this road section before the position signal is lost, and use the latest position signal as the data loss position information, and then determine the earliest position signal recorded in this road section after the position signal is restored, and use the earliest position signal as the data recovery position information. For example, the vehicle trip A in Table 3 has lost the position signal phenomenon, and the vehicle trip A is used as the vehicle trip to be processed. The vehicle trip A begins to lose the position signal at the longitude and latitude (A1, B1), and the longitude and latitude (A1, B1) are used as the data loss position information. The vehicle trip A begins to restore the position signal at the longitude and latitude (A2, B2), and the longitude and latitude (A2, B2) are used as the data recovery position information.
[0115] Regarding step S24, based on the data loss location information, the data recovery location information and the road information of the map road network data, the road sections of the data loss location information and the data recovery location information quality inspection are completed.
[0116] Regarding step S25, the completed vehicle trip to be processed is taken as a complete target vehicle trip.
[0117] It can be seen that this embodiment divides the itinerary of the target vehicle within a preset period based on the up and down power signals of the target vehicle and the intervals between adjacent down power signals and up power signals. When the position signal is lost in the itinerary, the itinerary can be completed to obtain a relatively complete itinerary of the target vehicle. This can reduce the probability of the target vehicle's itinerary being divided into multiple small segments due to data loss, thereby improving the accuracy of the target vehicle's itinerary division.
[0118] After dividing the vehicle travel distance corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance, the method further includes steps S31 to S33.
[0119] Step S31, obtaining the original data of vehicle position, vehicle status, vehicle accumulated mileage and vehicle speed corresponding to each target vehicle trip;
[0120] Step S32, respectively eliminating abnormal data and invalid data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, respectively correcting the offset data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, and then obtaining valid data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed;
[0121] Step S33, taking the valid vehicle position data, the valid vehicle status data, the valid vehicle accumulated mileage data and the valid vehicle speed data corresponding to each target vehicle trip as the trip data of each target vehicle trip for user query.
[0122] Regarding step S31, for each target vehicle trip, the vehicle position raw data refers to the vehicle position signal data collected by the vehicle during the target vehicle trip, the vehicle status raw data refers to the driving status data, fault status data, charging and discharging status data, etc. of the vehicle during the target vehicle trip, the vehicle cumulative mileage raw data refers to the cumulative mileage of the vehicle that gradually increases and changes during the target vehicle trip, and the vehicle speed raw data refers to the speed data of the vehicle during the target vehicle trip. In addition to the vehicle position raw data, the vehicle status raw data, the vehicle cumulative mileage raw data, and the vehicle speed raw data, other types of raw data may be added according to actual needs, and this embodiment does not limit this.
[0123] Regarding step S32, the abnormal data, invalid data and offset data in the various raw data in step S31 are corrected, the abnormal data and invalid data are deleted, and the offset data is corrected. The abnormal data, invalid data and offset data can be calibrated according to actual conditions. For example, when the maximum speed of the target vehicle is 180km / h, and the speed obtained includes 240km / h, then this 240km / h is abnormal data. When the longitude and latitude of the position signal of the target vehicle is (000, 000) or (999, 999), it is considered to be invalid data. When the target vehicle is traveling on a bridge, the longitude and latitude of its position signal characterizes that the vehicle is in the ocean near the bridge, which means that the position signal is offset and should be corrected.
[0124] Regarding step S33, the vehicle position valid data, vehicle status valid data, vehicle cumulative mileage valid data and vehicle speed valid data corresponding to each target vehicle trip are used as the trip data of each target vehicle trip for user query, which can improve the data accuracy in each vehicle trip and facilitate users to more accurately understand the relevant vehicle data of the target vehicle in different target vehicle trips.
[0125] After executing step S15, steps S41 to S43 may be executed to further improve the data accuracy of the target vehicle's itinerary.
[0126] Step S41, obtaining the starting point position information corresponding to the power-on signal and the ending point position information corresponding to the power-off signal of each target vehicle trip;
[0127] Step S42, performing map reverse address resolution on the starting point location information and the ending point location information of each target vehicle trip to determine the starting point geographical location and the ending point geographical location corresponding to the starting point location information and the ending point location information of each target vehicle trip;
[0128] Step S43, taking the starting geographical location and the ending geographical location corresponding to each target vehicle trip as the trip data of each target vehicle trip for user query.
[0129] Regarding step S41, the starting position information corresponding to the power-on signal and the ending position information corresponding to the power-off signal of each target vehicle trip are obtained. The starting position information and the ending position information may be longitude and latitude information.
[0130] Regarding step S42, the map reverse address resolution is performed on the starting point location information and the end point location information to determine the starting point geographical location and the end point geographical location of each target vehicle trip. The starting point geographical location and the end point geographical location are the point of interest information, which may specifically be a house (such as the name of the community where the home is located), a shop (such as the name of the restaurant for the dinner), a mailbox, a bus stop (the name of the bus stop near the company), a building (the name of the building where the company is located), etc.
[0131] Regarding step S43, the starting point and the ending point of each target vehicle trip are used as the trip data of the target vehicle trip for the user to query, such as the trip of the user driving the target vehicle from home to the company, or the trip of the user driving the target vehicle from the company to the dinner restaurant and then driving the vehicle back home.
[0132] More specifically, the starting geographical location and the ending geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query, including steps S4311 and S4312.
[0133] Step S4311, when there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, the power-on signal corresponding to the starting geographical location is replaced with an adjacent and earlier power-off signal in the updated power-on and power-off sequence;
[0134] Step S4312, using the location information of the adjacent and earlier power-off signal in the updated power-on and power-off sequence as the updated starting point location information, and updating the starting point geographical location according to the updated starting point location information, and using the updated starting point geographical location as the travel data of the corresponding vehicle trip for user query.
[0135] Due to data errors or offsets of the target vehicle, the starting geographical location may be an abnormal geographical location. When the vehicle is powered on from the company basement, but the geographical location obtained through analysis is indeed the subway track, then this starting geographical location is an abnormal geographical location. At this time, it is necessary to replace it with the geographical location of the power-off signal before the power-on signal corresponding to the starting geographical location. For example, as shown in Table 4, the starting geographical location of power-on (2) is an abnormal geographical location, so it is necessary to replace it with the geographical location of power-off (1) to obtain the updated starting geographical location, and then update the travel data of the corresponding vehicle trip, so that users can obtain more accurate travel data when querying.
[0136] Table 4
[0137]
[0138] In addition, when there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, the first valid location after the power-on signal corresponding to the starting geographical location is determined, and the starting geographical location is replaced with the first valid location, and the updated starting geographical location is used as the trip data of the corresponding vehicle trip for user query. That is, the first valid geographical location after power-on (2) is used as the updated starting geographical location, and then the trip data of the corresponding vehicle trip is updated, so that more accurate trip data can be obtained when the user queries.
[0139] The processing method for the abnormal destination geographic location is to execute step S4321-step S4322, which is similar to step S4311-step S4312 and will not be repeated in this embodiment.
[0140] Step S4321, when there is a corresponding vehicle trip with an abnormal destination geographical location, the power-off signal corresponding to the destination geographical location is replaced with an adjacent and later power-on signal in the updated power-on and power-off sequence;
[0141] Step S4322, using the location information of the adjacent and later power-on signal in the updated power-on and power-off sequence as the updated destination location information, and updating the destination geographic location according to the updated destination location information, and using the updated destination geographic location as the travel data of the corresponding vehicle trip for user query.
[0142] In summary, this embodiment obtains the power-on signal and power-off signal of the target vehicle within a preset period, and then obtains the power-on and power-off sequence according to the generation timing of each power-on signal and power-off signal; then determines the time interval between each two consecutive power-off signals and power-on signals in the power-on and power-off sequence; and merges the power-off signals and power-on signals whose time interval is less than the preset interval into a waypoint, and updates the power-on and power-off sequence; finally, the vehicle journey corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a section of the target vehicle journey for user query. It can be seen that this embodiment divides the journey of the target vehicle within a preset period based on the up and down power signals of the target vehicle and the intervals between the adjacent power-off signals and power-on signals, which can reduce the probability of the target vehicle's journey being divided into multiple small segments due to the user's pause, thereby improving the accuracy of the target vehicle's journey division.
[0143] Based on the same inventive concept, this embodiment provides Figure 2 A vehicle trip division device is shown, the device comprising:
[0144] An acquisition module 21 is used to acquire a power-on signal and a power-off signal of a target vehicle within a preset period;
[0145] A sorting module 22, used to sort the power-on and power-off signals according to their generation timing to obtain a power-on and power-off sequence;
[0146] A time determination module 23, used to determine the time interval between two consecutive power-down signals and power-up signals in a power-up and power-down sequence;
[0147] A sequence updating module 24, configured to merge power-off signals and power-on signals whose time interval is less than a preset interval into a path point, and update the power-on and power-off sequence;
[0148] The trip division module 25 is used to divide the vehicle trip corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip for user query.
[0149] Furthermore, the itinerary division module 25 is used to:
[0150] Determine whether there is a travel loss phenomenon in the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence;
[0151] Divide each vehicle trip without trip loss into a target vehicle trip;
[0152] For a to-be-processed vehicle trip with a trip loss phenomenon, obtaining data loss location information and data recovery location information of a road section corresponding to the to-be-processed vehicle trip with a trip loss phenomenon;
[0153] According to the data loss location information, data recovery location information and map road network data, the itinerary of the corresponding road section where the itinerary of the vehicle to be processed is completed;
[0154] Each completed vehicle trip to be processed is divided into a target vehicle trip.
[0155] Furthermore, the device also includes a data processing module, which is used to:
[0156] After dividing the vehicle trips corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip, obtaining the vehicle position original data, vehicle status original data, vehicle accumulated mileage original data and vehicle speed original data corresponding to each target vehicle trip;
[0157] Respectively remove abnormal data and invalid data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, respectively correct the offset data in the original data of vehicle position, vehicle status, vehicle cumulative mileage and vehicle speed corresponding to each target vehicle trip, and then obtain valid data of vehicle position, valid data of vehicle status, valid data of vehicle cumulative mileage and valid data of vehicle speed;
[0158] The valid data of vehicle position, valid data of vehicle status, valid data of vehicle accumulated mileage and valid data of vehicle speed corresponding to each target vehicle trip are used as the trip data of each target vehicle trip for user query.
[0159] Furthermore, the device also includes a data processing module, which is used to:
[0160] After dividing the vehicle trips corresponding to each two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle trip, obtaining the starting position information corresponding to the power-on signal and the ending position information corresponding to the power-off signal of each target vehicle trip;
[0161] Performing map reverse address analysis on the starting point location information and the end point location information of each target vehicle trip to determine the starting point geographical location and the end point geographical location corresponding to the starting point location information and the end point location information of each target vehicle trip;
[0162] The starting point geographical location and the ending point geographical location corresponding to each target vehicle trip are respectively used as the trip data of each target vehicle trip for user query.
[0163] Furthermore, the device also includes a data processing module, which is used to:
[0164] When there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, the power-on signal corresponding to the starting geographical location is replaced with an adjacent and earlier power-off signal in the updated power-on and power-off sequence;
[0165] The location information of the adjacent and earlier power-off signal in the updated power-on and power-off sequence is used as the updated starting point location information, and the starting point geographical location is updated according to the updated starting point location information, and the updated starting point geographical location is used as the travel data of the corresponding vehicle trip for user query.
[0166] Furthermore, the device also includes a data processing module, which is used to:
[0167] When there is a corresponding vehicle trip with an abnormal starting geographical location, the first valid location after the power-on signal corresponding to the starting geographical location is determined, and the starting geographical location is replaced with the first valid location. The updated starting geographical location is used as the trip data of the corresponding vehicle trip for user query.
[0168] Furthermore, the device also includes a data processing module, which is used to:
[0169] When there is a corresponding vehicle trip whose destination geographical location is an abnormal geographical location, the power-off signal corresponding to the destination geographical location is replaced with an adjacent and later power-on signal in the updated power-on and power-off sequence;
[0170] The location information of the adjacent and later power-on signal in the updated power-on and power-off sequence is used as the updated destination location information, and the destination geographic location is updated according to the updated destination location information, and the updated destination geographic location is used as the travel data of the corresponding vehicle trip for user query.
[0171] Based on the same inventive concept, this embodiment provides Figure 3 An electronic device as shown includes:
[0172] Processor 31;
[0173] A memory 32 for storing instructions executable by the processor 31;
[0174] The processor 31 is configured to execute to implement a vehicle trip division method as provided above.
[0175] Based on the same inventive concept, this embodiment provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor 31 of the electronic device, the electronic device can implement a vehicle trip division method as provided above.
[0176] Since the electronic device introduced in this embodiment is an electronic device used to implement the information processing method in the embodiment of the present application, based on the information processing method introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the electronic device used by the information processing method in the embodiment of the present application, it belongs to the scope of protection of this application.
[0177] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0178] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0179] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0181] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0182] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A vehicle trip division method, characterized in that: The method comprises: Obtaining the power-on signal and power-off signal of the target vehicle within a preset period; Sorting the power-on and power-off signals according to their generation timing to obtain a power-on and power-off sequence; Determine the time interval between the generation of every two adjacent power-down signals and the power-up signals in the power-up and power-down sequence; Combining the power-off signal and the power-on signal whose time interval is less than the preset interval into a path point, and updating the power-on and power-off sequence; The vehicle travel distance corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence is divided into a target vehicle travel distance for user query.
2. The method according to claim 1, characterized in that The step of dividing the vehicle travel distances corresponding to each two adjacent power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance comprises: Determine whether there is a travel loss phenomenon in the vehicle travel corresponding to every two consecutive power-on signals and the power-off signals in the updated power-on and power-off sequence; Divide each vehicle trip without the trip loss phenomenon into a target vehicle trip; For the to-be-processed vehicle trip with the trip loss phenomenon, obtaining data loss location information and data recovery location information of the road section corresponding to the trip loss phenomenon in the to-be-processed vehicle trip; According to the data loss location information, the data recovery location information and the map road network data, the itinerary of the vehicle to be processed corresponding to the itinerary section where the itinerary is lost is completed; Each of the completed to-be-processed vehicle trips is divided into a target vehicle trip.
3. The method according to claim 1, characterized in that After dividing the vehicle travel distance corresponding to each two consecutive power-on signals and the power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance, the method further includes: Obtaining original vehicle position data, original vehicle status data, original vehicle accumulated mileage data, and original vehicle speed data corresponding to each of the target vehicle trips; Respectively remove abnormal data and invalid data from the original data of vehicle position, the original data of vehicle status, the original data of vehicle cumulative mileage, and the original data of vehicle speed corresponding to each of the target vehicle trips, and respectively correct the offset data from the original data of vehicle position, the original data of vehicle status, the original data of vehicle cumulative mileage, and the original data of vehicle speed corresponding to each of the target vehicle trips, so as to obtain valid data of vehicle position, valid data of vehicle status, valid data of vehicle cumulative mileage, and valid data of vehicle speed; The vehicle position valid data, the vehicle status valid data, the vehicle accumulated mileage valid data and the vehicle speed valid data respectively corresponding to each target vehicle trip are used as the trip data of each target vehicle trip for user query.
4. The method according to claim 1, characterized in that After dividing the vehicle travel distance corresponding to each two consecutive power-on signals and the power-off signals in the updated power-on and power-off sequence into a target vehicle travel distance, the method further includes: Obtaining the starting point position information corresponding to the power-on signal and the ending point position information corresponding to the power-off signal of each target vehicle trip; Performing map reverse address resolution on the starting point location information and the ending point location information of each target vehicle trip to determine the starting point geographical location and the ending point geographical location corresponding to the starting point location information and the ending point location information of each target vehicle trip; The starting point geographical location and the ending point geographical location respectively corresponding to each of the target vehicle trips are respectively used as the trip data of each of the target vehicle trips for user query.
5. The method according to claim 4, characterized in that The method of using the starting point geographical location and the ending point geographical location corresponding to each of the target vehicle trips as the trip data of each of the target vehicle trips for user query includes: When there is a corresponding vehicle trip whose starting geographical location is an abnormal geographical location, replacing the power-on signal corresponding to the starting geographical location with the adjacent and earlier power-off signal in the updated power-on and power-off sequence; The position information of the adjacent and earlier power-down signal in the updated power-up and power-down sequence is used as the updated starting point position information, and the starting point geographical location is updated according to the updated starting point position information, and the updated starting point geographical location is used as the travel data of the corresponding vehicle trip for user query.
6. The method according to claim 4, characterized in that The method of using the starting point geographical location and the ending point geographical location corresponding to each of the target vehicle trips as the trip data of each of the target vehicle trips for user query includes: When there is a corresponding vehicle trip with the starting geographical location being an abnormal geographical location, the first valid location after the power-on signal corresponding to the starting geographical location is determined, and the starting geographical location is replaced with the first valid location, and the updated starting geographical location is used as the trip data of the corresponding vehicle trip for user query.
7. The method according to claim 4, characterized in that The method of using the starting point geographical location and the ending point geographical location corresponding to each of the target vehicle trips as the trip data of each of the target vehicle trips for user query includes: When there is a corresponding vehicle trip whose destination geographical location is an abnormal geographical location, replacing the power-off signal corresponding to the destination geographical location with the adjacent and later power-on signal in the updated power-on and power-off sequence; The position information of the adjacent and later power-on signal in the updated power-on and power-off sequence is used as the updated destination position information, and the destination geographic location is updated according to the updated destination position information, and the updated destination geographic location is used as the travel data of the corresponding vehicle trip for user query.
8. A vehicle trip division device, characterized in that: The device comprises: An acquisition module, used to acquire a power-on signal and a power-off signal of a target vehicle within a preset period; A sorting module, used for sorting the power-on and power-off signals according to their generation timing to obtain a power-on and power-off sequence; A time determination module, used to determine the time interval between the generation of every two adjacent power-down signals and the power-up signals in the power-up and power-down sequence; A sequence updating module, used for merging the power-off signal and the power-on signal whose time interval is less than a preset interval into a path point, and updating the power-on and power-off sequence; The travel division module is used to divide the vehicle travel corresponding to every two consecutive power-on signals and power-off signals in the updated power-on and power-off sequence into a target vehicle travel section for user query.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute to implement a vehicle trip division method as claimed in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement a vehicle trip division method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Vehicle travel division method and device
CN106683227A
Travel fusion method and device and vehicle
CN112634488A
Vehicle travel processing method and device and storage medium
CN115080683A
Electric vehicle endurance mileage abnormity identification method, system and device and medium
CN115534756A
Vehicle subdivision market identification method and device, electronic equipment and storage medium
CN116882868A
Cited By
Real-time travel segmentation method based on TBOX
CN121418436A
